Search C Program | nimishsoft@gmail.com

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


3 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
  3. #include

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

    ReplyDelete