Dyskusje Q&A
Arrays
0 głosów
1 OdpowiedźNeed your help ASAP! [Java]
0 głosów
6 odpowiedziwhat 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 odpowiedziCould you please explain me?
2 głosów
4 odpowiedziPopularne dzisiaj
Web Development
3 Votes
Cybersecurity techies
4 Votes
Please complete this code.
0 Votes
What's wrong with code?
0 Votes
Please answer.
0 Votes
Introduction of html
0 Votes
Money Back
0 Votes
CSS or Tailwind
1 Votes
Singly linked list
0 Votes