+ 1

I don't understand the error..

Whenever I run this for loop, it outputs x and then outputs playground? What does this even mean? #include <iostream> using namespace std; int main(){ //your code goes here for(int x = 5; x >= 0; x--){ cout << x << "/n"; } return 0; }

16th Jun 2022, 2:53 PM
Alexander Pollitt
Alexander Pollitt - avatar
2 Answers
+ 3
Alexander Pollitt Should be \n
16th Jun 2022, 2:54 PM
A͢J
A͢J - avatar
0
Well now k feel like an idiot. Thanks
16th Jun 2022, 5:45 PM
Alexander Pollitt
Alexander Pollitt - avatar