+ 1
There is a piece of code do not understand, I hope you teach me,thankyou!!!
int num = 1; int number; int total = 0; while (num <= 5) { cin >> number; total += number; num++; } cout << total << endl;
2 Antworten
+ 3
hi,
this program will read 5 input from user and add to total and finally print the sum of 5 numbers.
0
Can you teach me?