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
Related Articles:
- Print the Pattern of Binary Numbers (Pyramid)
- C Program to Print Inverted Pyramid
- Program to Print this Right angled Pyramid in C using Nested Loops in C
- Pyramid Programs in C Programming
- Switch case MCQ 20 : Floating Numbers are not allowed
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