Dyskusje Q&A
Question
2 głosów
4 odpowiedzicanvas html
0 głosów
2 odpowiedziComputer keys
0 głosów
1 Odpowiedź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 Głos
7 odpowiedziPopularne dzisiaj
API
0 Votes
Help for roadmap
0 Votes
Sockets, etc
0 Votes
Quiz
0 Votes
Necesitó ayuda
0 Votes
Controls issue
0 Votes