New course! Every coder should learn Generative AI!
Try a free lessonQ&A Discussions
What is Variable
0 Votes
9 Answerswhat is tjis code problem!
#include <iostream>
using namespace std;
int main()
{
int b = 5;
int arr[b] = {11, 35, 62, 555, 989};
int sum = 0;
for (int x = 0; x < 5; x++) {
sum += arr[x];
}
cout << sum << endl;
return 0;
}
I cannot make an array using int variable in order to define array's element number!?
1 Vote
7 Answerswhat is variable
1 Vote
7 AnswersId vendria a ser lo mas parecido a una variable o maa comun como un nombre propio que identifica unica y especificamente al elemento asignado, para poder usarse con el codigo de css o js normalmente. pero la clase es como decir un apellido o una funcion como por ejemplo encabezado, todo elememto que vayaen el encabezado de nuestra pagina seria de class="encabezado"
0 Votes
2 Answersswap two variable a , b
2 Votes
6 Answersusing a while loop create a guessing game program that keeps asking the user to enter a number until the user enters the number 7. You will need to create and initialise an int variable to zero. You can then use this variable as the condition in your while loop ( while the number is not equal to seven) Then in the while loop ask the user to enter a number and store the number entered in the number variable that is in the conditions of your loop.
0 Votes
1 AnswerHot today
Beginner
2 Votes
Ceasor Cypher 👀
1 Votes
Can't fill gaps after app update
2 Votes
Please help 🙏🏻
1 Votes
which line would you use irl?
1 Votes
what is the mentor tag?
0 Votes
There is a bug in the app
1 Votes
testq
0 Votes