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
#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
