0

C++ For loop

What will be the output For(int x=10; x>0; x--)

31st May 2024, 3:15 PM
Abba Tijjani
Abba Tijjani - avatar
2 odpowiedzi
+ 6
There is no output, you are not printing anything. And you have syntax error if you start "for" with capital letter. You can easily test such code in the Sololearn playground, and see the output for yourself.
31st May 2024, 3:51 PM
Tibor Santa
Tibor Santa - avatar
+ 2
error
31st May 2024, 7:11 PM
john ds
john ds - avatar