+ 1

somr one pls help me.

int main() { int num = 1; int number; int total = 0; while (num <= 5) { cin >> number; total += number; num++; } cout << total << endl; return 0; } i dont understand at all....

31st Jul 2017, 6:47 PM
Cayden Swanepoel
Cayden Swanepoel - avatar
2 Answers
+ 1
if you dont understand that syntaxes you most read more. but if you dont understand how a code work do those command in paper .
31st Jul 2017, 6:53 PM
mohamad mahjoob
mohamad mahjoob - avatar
+ 1
nvm i figured it out but tnx anyway
31st Jul 2017, 6:54 PM
Cayden Swanepoel
Cayden Swanepoel - avatar