Search C Program

Number Pattern - 33

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


2 comments:

  1. sir, your site is awesome !!! thnks for providing knowledge.

    ReplyDelete
  2. #include

    int 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;
    }

    ReplyDelete