11
12 13
13 14 15
14 15 16 17
#include <stdio.h>
int main()
{
int i,j;
for(i=1;i<=4;i++)
{
for(j=1;j<=i;j++)
{
printf("%d ", 9+i+j);
}
printf("\n");
}
return 0;
}
Related Links:
- More Number Pattern Programs
- Star Pattern Programs in C
- Alphabet Pattern Programs in C
- Series Programs in C
sir, your site is awesome !!! thnks for providing knowledge.
ReplyDelete#include
ReplyDeleteint main()
{
int r,i,j;
printf("Enter the no. of rows : ");
scanf("%d",&r);
for(i=1;i<=r;i++)
{
for(j=i;j<=(2*i)-1;j++)
{
printf("1%d ",j);
}
printf("\n");
}
return 0;
}
#include
ReplyDeleteint main()
{
int r,c,a;
for(r=1;r<=5;r++)
{
a=r;
for(c=r;c>=1;c--)
{
printf("%d",a++);
}
printf("\n");
}
return 0;
}