Friday, 15 June 2012
Program To Print Pyramid
Program To Print
Pyramid
#include<iostream.h>
#include<conio.h>
#include<
iomanip
.h>
main()
{
clrscr();
int i,j;
for(i=1;i<=5;i++)
{
for(j=1;j<=i;j++)
{
cout<<setw(3)<<i;
}
cout<<"\n";
}
getch();
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment