0
why doesnt this code work
#include <iostream> using namespace std; int main(){ int a; int b = 40; int total= 0; while (b<=100){ cin>> a; total+=a; b++; } return 0; }
9 Respuestas
+ 2
Because you didn't write any print statement in your code
Use cout<<total; to print the result
+ 1
Check again..
You are missing printing the output.. Only..
+ 1
Because you didn't write any print statement in your code
Use cout<<total; to print the result
0
What problem your getting..? It works
0
can u pls elaborate on that
0
it jxt gives me a no output every tym i run it
0
oo yeah tnx bro
0
Mikelet Jr
Wel come...
0
yeah i finally figured it out tnx