+ 2
Why is nothing displayed when I launch the program?
(i'm a noob) #include <iostream> using namespace std; int main ( ) { int chiffre = 1; while ( chiffre < 10 ); { cout << "Rentrez un chiffre plus grand que 10"; cin >> chiffre; } cout << chiffre << " est plus grand que 10 " << endl; } Thanks for the help :)
7 Respostas
+ 3
Louis just remove semicolon after while statement.. semicolon terminates whatever is there in while loop.
additionally, you should end your main function with return 0;
+ 5
Never use semicolon next to
functions defination
conditional statements
loops.....
Hope this helpsâșïžâșïž.
+ 3
Yes that's the only case where we need to use ; .
Hope you got itâșïžâșïž.
+ 2
I confused with the do/while loop were we use a semicolon after the while(...) wich is in the end of the loop (sorry for my bad english)
+ 2
:)
0
Thanks you <<3
0
thanks for the help đ