0

When i run this loop there is nothing shown...Plz help

#include <iostream> using namespace std; int main() { for(int x = 1; x > 10; x++){ cout << x << endl; } return 0; }

18th Apr 2017, 11:34 AM
Dude Lazy
Dude Lazy - avatar
2 odpowiedzi
+ 4
Loop does not start because X is less than 10. You should put "<" there.
18th Apr 2017, 11:39 AM
h8c
h8c - avatar
0
In the for, change > for <. =)
18th Apr 2017, 5:32 PM
Denis Felipe
Denis Felipe - avatar