NESTING OF LOOP
BASICS PROGRAMMING
#include<conio.h>
void main()
{
int counter=0,num,temp,x,sp=5,p;
clrscr();
while(counter<5)
{
num=1;
temp=counter;
while(temp>0)
{
num = num * 11;
}
counter++;
p=sp;
while(p>0)
{
couy<<“t”;
p–;
}
sp–;
while(num>0)
{
x=num%10;
num=(num-x)/10;
cout<<x<<“tt”;
getch();
}
cout<<“n”;
}
}
Your output is
1
12
123
1234
12345
1
232
34543
4567654
567898765