Problem Statement : Program to print 1-10 Numbers in Pyramid fashion
#include<stdio.h>
#include<conio.h>
void main()
{
int i,j;
int count=1;
for(i=0;i<=4;i++)
{
printf("\n");
for(j=0;j<i;j++)
{
printf("%d\t",count);
count++;
}
}
getch();
}
Output :
1
2 3
4 5 6
7 8 9 10
Incoming search terms:

About the author: Pritesh View all posts by Pritesh
My name is Pritesh Taral. I am working in well known MNC. as Java Developer. I am part time blogger loves writing articles on C/C++. I am active on facebook using community fan page .One can Visit me @ Facebook
Facebook Fan Page