Cours
Se connecterCommencer à apprendre l'IA
Cours
Se connecterCommencer à apprendre l'IA

Discussions Q&R

int arr[] = {11, 35, 62, 555, 989}; int sum = 0; for (int x = 0; x < 5; x++) { sum += arr[x]; } cout << sum << endl
arrays
5 Votes
8 Réponses
27th Nov 2016, 4:31 PM
Bhairesh M
Bhairesh M - avatar
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]
arraysc++
0 Vote
4 Réponses
13th Nov 2016, 4:54 PM
prashanth jerry
prashanth jerry - avatar
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!?
arraysc++
1 Vote
7 Réponses
30th Jul 2016, 9:14 PM
Hesam Alinejad
Hesam Alinejad - avatar
Given a list of numbers, output their sum using for loop.
[42,0,1,124,3,555,67,7,8,8897,99]sum=0foriinsx:x=
0 Vote
6 Réponses
18th Jul 2022, 9:40 AM
Syed Anas
Syed Anas - avatar
Aujourd'hui en vedette
Python intermediate help with dictionaries
0 Votes
Marquee
1 Votes
I'm about to make a complex calculator in python
0 Votes
Any Advise?
1 Votes
How far do courses go on Sololearn?
0 Votes
RUST'S FUTURE
1 Votes
why is python community is too small in sololearn?
0 Votes
Popsacles Aufgabe
1 Votes
Button In C++
1 Votes
Question #2: "Please activate your account and keep learning to enable messaging. An email has been sent to you"
1 Votes