0

Pls help to resolve this error

int i = 11; for(i,i<=5,i++) { cout << i; }

8th Sep 2018, 7:16 AM
shahul hameed aljas TA
shahul hameed aljas TA - avatar
6 ответов
+ 5
Also use ; instead of , in for loop Example : for(int i =1 ; i<5 ; i++) { ....... }
8th Sep 2018, 7:32 AM
Meet Mehta
Meet Mehta - avatar
+ 2
For loop will never run as condition 5>=11 will never hold true. Hope this helps ☺️☺️.
8th Sep 2018, 7:22 AM
Meet Mehta
Meet Mehta - avatar
0
u need to add - “ “ , after i. like this : cout<< i <<“ “ ;
8th Sep 2018, 7:19 AM
ANOD
ANOD - avatar
0
let me chk i just try for loop in c++
8th Sep 2018, 7:23 AM
shahul hameed aljas TA
shahul hameed aljas TA - avatar
0
hi meet ,thanks
8th Sep 2018, 8:56 AM
shahul hameed aljas TA
shahul hameed aljas TA - avatar
0
:)
8th Sep 2018, 9:31 AM
Meet Mehta
Meet Mehta - avatar