Popular Posts

18.Write a program and show 1 12 123 1234 12345

18.Write a program and show

1
12
123
1234
12345


#include
#include
int main()
{
clrscr();
int i,j;
for(i=1;i<=5;i++)
{
for(j=1;j<=i;j++)
cout< cout<<"\n";
}
getch();
return 0;
}
Output:

1
12
123
1234
12345

No comments: