Number Pattern 37 – Pyramid pattern in C programming

Spread the love

Number Pattern 37-Pyramid pattern in C programming

Pyramid pattern in C programming

In this program, we will see the Pyramid pattern numbers in C programming language. Please look into the program.

0 
909 
89098 
7890987 
678909876 
56789098765 
4567890987654 
345678909876543 
23456789098765432 
1234567890987654321

The C program for Pyramid pattern is as follows:

#include<stdio.h>

int main()
{
  int i,j;
  printf("0n");
  for(i=9;i>=1;i--)
  {
    for(j=i;j<=9;j++)
      printf("%d",j);
    printf("0");
    for(j=9;j>=i;j--)
      printf("%d",j);
    printf("n");
  }
  return 0;
}

Number Series Programs in C programmming

Star Pattern Programs in C programmming

Number Pattern Programs in C programmming

Alphabet Pattern Programs in C programmming


Spread the love

Leave a Comment