Pages
HOME
DEVELOPERS
PROJECTS
PROGRAMS
TUTORIAL
DATA STRUCTURE & ALGORITHM
HELP
Program to print pyramid
/*1
12
123
1234 */
#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
int n;
cout<<"enter how many rows";
cin>>n;
for(int i=1;i<=n;i++)
{
for(int j=1;j<=i;j++)
cout<<j;
cout<<endl;
}
getch();
}
Newer Post
Older Post
Home