Programming and Software Development
Friday, April 16, 2010
Nested Loop
#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
int a,b;
for(a=1;a<=5;a++)
{
for(b=1;b<=a;b++)
{
cout<<a;
}
cout<<"\n";
}
getch();
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment