+ 1
Help required, why input is multiplied by 5
int main() { int num = 1; int number; int total = 0; while (num <= 5) { cin >> number; total += number; num++; } cout << total << endl; return 0; }
3 RĂ©ponses
+ 2
Thanks a lot ~swim~ i just started it yesterday that's why concept was not clear.