Completely Solved C, C++ Programs Assignment.




C Program to print numeric pyramid-I

Filed Under:

Problem 16. C Program to print numeric pyramid-I
#include<stdio.h>
#include<conio.h>
main()
{
int i,j;
clrscr( );
for(i=1;i<=5;i++)
{
for(j=1;j<=i;j++)
printf(“%d”,j);
printf(“n”);
}
getch();
}

C compiler: gcc 4.1.2

Back to main directory: Sample C Program | Software Practical | Solved C Assignment


Get Free Programming Tutorials and Solved assignments