+ 1

What's the error??

#include <iostream.h> #include <conio.h> void main() { int a,b; clrscr(); for(a=1;a<=6;a++) { for(b=1;b<=i;b++) cout<<b<<" "; cout<<"\n"; } getch(); }

8th Feb 2019, 9:07 AM
Am@resh
Am@resh - avatar
4 Respostas
+ 5
And might be b<=a not i
8th Feb 2019, 9:48 AM
Николай Шаповаленко
Николай Шаповаленко - avatar
+ 4
SL means SoloLearn.
15th Feb 2019, 2:35 PM
Николай Шаповаленко
Николай Шаповаленко - avatar
+ 3
Run it on offline compiler (eg. Cxxdroid) not SL
9th Feb 2019, 9:48 AM
Shahil Ahmed
Shahil Ahmed - avatar
0
What is SL
15th Feb 2019, 2:12 PM
Am@resh
Am@resh - avatar