+ 7
Why this is not working for me? Help
Why this not work for me #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; }
26 Antworten
+ 6
Ok, see this code, run it and it will explain how we give input in Code Playground
https://code.sololearn.com/WhiNb9BkJUVC/?ref=app
+ 4
The code works but the question is how respectively what did you like to do?
+ 4
On SL Playground you have to set the ALL inputs data at start of this code.
For example:
1
1
1
1
1
+ 4
Thanks
+ 4
Wow you have 1110 Day streak
+ 3
Its just a lesson but it is not working
+ 3
No output
+ 3
U need 1 more for 1111
+ 3
Can you Follow me so i lill get my 1st follower
+ 3
This code is working perfectly. What's your issue?
+ 3
Idk
+ 2
Its after "num++"
+ 2
Yeah missed that one sorry.
What you got? error message? no output?
+ 2
Try to give input like JaScript example and try once more
+ 2
Ok
+ 2
It says i cant put it there
+ 2
No problem 👌
+ 2
LOL I didn't even count
Never mind, it's nothing just got the time to login daily
+ 2
Don't worry about followers
More important is to learn
We're in SoloLearn not Fb anyways 👌
+ 2
But i want one