0
whenever I run this code on the Code Playground, it says seems like your program needs an input, pls help
#include <iostream> using namespace std; int main() { int num = 1; int number; int total = 0; while (num <= 5) { cin >> number; total += number; num++; } cout << total << endl; return 0; }
2 ответов
+ 3
yes because you are asking for input by cin >>number
+ 3
Open and run this code to understand how input works in SoloLearn 👍
https://code.sololearn.com/WhiNb9BkJUVC/?ref=app