Write a program to print the number pattern 2

//this is a program to print the number pattern
#include<stdio.h>
#include<conio.h>
void main()
{
int i,j;

printf("\n\nDrawing a patter");

for(i=1;i<=4;i++)
{
printf("\n");
for(j=1;j<=i;j++)
{
printf(" %d ",j);
}
}
getch();
}

Previous
Next Post »