Showing posts with label
Program To Print Pyramid
.
Show all posts
Showing posts with label
Program To Print Pyramid
.
Show all posts
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();
}
Older Posts
Home
Subscribe to:
Posts (Atom)