Q&A Discussões
what 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 Voto
7 RespostasQuente hoje
Ai generated practices
1 Votes
Where did mess up....
1 Votes
Feedback on my portfolio
0 Votes
Yo this is madness
0 Votes
Advertising in Sololearn
0 Votes
How can i insert files?
1 Votes
Solving coding challenges
0 Votes
New model
0 Votes