8.06.2014

100+ List of C Pyramid Pattern Programs Source Code

C programs Pyramid List With Source Code:

   1  2  3  4  5
  15 14 13 12
   6  7  8
  11 10
   9

    1
    1 2 3
    1 2 3 4 5
    1 2 3 4 5 6 7
    1 2 3 4 5 6 7 8 9

    A
    BAB
    CBABC
    DCBABCD
    EDCBABCDE

    1
    212
    32123
    43212345
    543212345

    A
    ABA
    ABCBA
    ABCDCBA
    ABCDEDCBA
    ABCDEFEDCBA
    ABCDEDCBA
    ABCDCBA
    ABCBA
    ABA
    A

Q.6 Print the Number Triangle Pattern C program as:

    0
    101
    21012
    3210123
    432101234
    54321012345

Q.7 Continuous Diagonal Number pyramid C program as:

    1
   6 2
   10 7 3
   13 11 8 6
   15 14 12 9 5

Q.8 Design a Number Rhombus Pattern C program as:

            1 1
       2   2
      3     3
     4       4
    5         5
     4       4
      3     3
       2   2
        1 1

Q.9 How To Print E-Shape Pyramid In C:

   *****
   *
   ***
   *
   *****

Q.10 How To Print M-Shape Pyramid In C:

   *   *
   ** **
   * * *
   *   *
   *   *

Q.11 How to print V-Shape pyramid in C as:

   *   *
    * *
     *

Q.12 How to make continuous vertical-horizontal number pyramid as:

    1
    6  2
   10  7  3
   13 11  8 4
   15 14 12 9 5

Q.13 How to print T Shape pyramid in C as:

  *****
    *
    *
    *

Q.14 How to T-Shape Character pyramid as:

 DCBABCD
  CBABC
   BAB
    A

Q.15 How to T-Shape number pyramid as:

  4321234
   32123
    212
     1


Q.16 How to design a Character pattern as:

  Aa
  Bb Bb
  Cc Cc Cc
  Dd Dd Dd Dd


Q.17 How to make Taj Mahal shape design as:

  *
  ***
  *****
  *******
  **
  ****
  ******
  *******
  ******
  ****
  **
  *******
  *****
  ***
  *

Q.18 How to make a continuous number pyramid with adding increasing zero digit with each row as:

  1
  02
  003
  0004
  00005
  000006
  0000007
  00000008
  000000009

Q.19 How to make half rhombus shape number triangle as:

  5
  456
  34567
  2345678
  123456789
  2345678
  34567
  456
  5

Q.20 Floyd algorithm character pattern as:

  A
  BC
  DEF
  GHIJ
  KLMNO

Q.21 How Print rectangle pattern program in C as:

  1111111
  1222221
  1233321
  1234321
  1233321
  1222221
  1111111

Q.22 Character triangle shape C Program as:

  ABCDE
  ABCD
  ABC
  AB
  A

Q.23 Write the following character pattern if string is: INDIA

   I
    N
     D
      I
       A

Q.24 Write the following character pattern if string is: INDIA

   A
   II
   DDD
   NNNN
   IIIII

Q.25 Write the following number triangle pattern as:
   
   123454321
   1234321
   12321
   121
   1

Q.26 Write the following character triangle pattern as:

   ABCDEDCBA
   ABCDCBA
   ABCBA
   ABA
   A

Q.27 Write the following Odd and even number pattern program in C as:

    1
    2 4 6
    1 3 5 7  9
    2 4 6 8  10 12  14
    1 3 5 7  9  11  13  15 17 

Q.28 Reverse Floyd Triangle - Half Floyd number diamond 

     1
     2 3
     4 5 6
     7 8 9 10
     4 5 6
     2 3
     1

Q.29 Reverse Floyd Triangle - Half Floyd number diamond 

     4
     4 3 4
     4 3 2 3 4
     4 3 2 1 2 3 4
     4 3 2 3 4
     4 3 4
     4

Q.30 Write the following number reverse pattern in C as:

    1  2  3  4
    8  7  6  5
    9  10 11 12
    16 15 14 13

Q.31 Diagonal Number pattern in C as:
   
            1
           2
          3
         4
        5

Q.32 Continuous table pattern C program:
   
     1  2  3  4  5
     2  4  6  8 10 
     3  6  9 12 15
     4  8 12 16 20

Q.33 Character pattern of half diamond in C :
   
      D
      CDC
      BCDCB
      ABCDCBA
      BCDCB
      CDC
      D
Q.34 Number pattern of half diamond in C :
   
      4
      343
      23432
      1234321
      23432
      343
      4

Q.35 Equal Number pyramid pattern in C as:
     1 2 3 4 5 6
     2 3 4 5 6
     3 4 5 6
     4 5 6
     5 6
     6 

Q.36 Equal Character pyramid pattern in C as:
     A B C D E F
     B C D E F
     C D E F
     D E F
     E F 
     F


Find out your specific C program pyramid pattern at another Big list of 98+ C Pyramid Programs.


28 comments:

  1. code for -
    6543210
    543210
    43210
    3210
    210
    10
    0

    ReplyDelete
    Replies
    1. @Jagriti Garg,

      Your required C Number Triangle program source at:

      http://cprogrammingcodes.blogspot.com/2011/09/13design-numbers-tringle-pyramid.html

      Delete
    2. import java.lang.*;

      class loop10
      {
      public static void main(String args[])
      {
      int i,j,k=7,l;
      for(i=0;i<=7;i++)
      {
      l=6-i;
      for(j=1;j<=k-i;j++)
      {
      System.out.print(l+"");
      l=l-1;
      }
      System.out.println();

      }
      }
      }

      Delete
    3. i need this pyramid

      11111
      0000
      111
      00
      1

      Delete
  2. this pattern send me sir


    * *
    ** * **
    **** **** ****
    **** ****** ****
    **** ******** ****
    **** ******** ****
    **** ******** ****
    **** ******** ****
    **** ******** ****
    **** ******** ****
    *************************
    *************************
    *********** ***********
    *********** ***********

    ReplyDelete
  3. abcde
    abcd
    abc
    ab
    a
    with out using loops can any one write this programm and send to my mail id please janjanam.nagasai@gmail.com

    ReplyDelete
  4. code for
    enter an integer ex. 19
    2
    2=4
    2=4=6
    2=4=6=8
    2=4=6=8=10
    2=4=6=8=10=12
    2=4=6=8=10=12=14
    2=4=6=8=10=12=14=16
    2=4=6=8=10=12=14=16=18

    the point is that it counts by 2 until it reaches the number closest to the number input by the user

    ReplyDelete
  5. what is the logic to draw pattern of any type

    ReplyDelete
  6. I need
    1
    1 2
    1 2 4
    1 2 4 8
    1 2 4 8 16

    ReplyDelete
  7. plz write the code ... #condition is ""use only 2 for loop""and if else use many more.. not use while loop..

    if n=1
    it should print
    *

    n==3
    ***
    *
    ***

    n=5
    *****
    ***
    *
    ***
    *****
    .
    .so on..........

    ReplyDelete
  8. I want code for this...plz...

    Y

    YO

    YOU

    YOUA

    YOUAR

    YOUARE

    YOUAREA

    YOUAREAW

    YOUAREAWE

    YOUAREAWES

    YOUAREAWESO

    YOUAREAWESOM

    YOUAREAWESOME

    ReplyDelete
  9. I need this program
    0
    1 0 1
    2 1 0 1 2
    3 2 1 0 1 2 3
    4 3 2 1 0 1 2 3 4

    ReplyDelete
    Replies
    1. #Innocenth Mbuya

      The source code for above question is already given as Question 6

      or

      you can check your above number pattern source code answer as:

      https://cprogrammingcodes.blogspot.com/2014/08/number-triangle-pattern-c-program.html

      Delete
  10. Send me this Pattern
    11
    112
    1123
    11235
    112358 and so on until user wantss

    ReplyDelete
  11. i want
    1
    2 6
    3 7 10
    4 8 11 13
    5 9 12 14 15

    ReplyDelete
    Replies
    1. @Navaneetha Dharmaraj,

      Your required above continuous number pattern C program source code as:

      http://cprogrammingcodes.blogspot.com/2016/07/continuous-number-pattern-c-program.html

      Delete
  12. 0
    1234
    2468
    46810
    10
    Can u pls write a program for dis

    ReplyDelete
  13. i want
    1
    b c
    D E F
    * * * *
    11 12 13 14

    ReplyDelete
  14. code for this partten:-
    5
    41
    32
    3111
    221
    2111
    11111

    ReplyDelete
  15. need the code for this one please
    1
    2 1 2
    3 2 1 2 3
    4 3 2 1 2 3 4

    ReplyDelete
    Replies
    1. #SaCarPunkz ThApa,

      The source code for above question is already given as Question 4

      or

      you can check your above number pattern source code answer as:

      https://cprogrammingcodes.blogspot.com/2014/02/equal-number-triangle.html

      Delete
  16. 1 2
    4 3
    5 6
    8 7
    please give me solution for this.

    ReplyDelete
    Replies
    1. #Gaurav Kumar

      Your required spiral continuous number pattern C program source code at:

      https://goo.gl/j31k9E

      #cprogramming

      Delete
  17. Can anybody make Taj Mahal using loop only/-

    ReplyDelete
  18. 1
    1 2
    1 2 3
    1 2
    1

    What is the code of it.....

    ReplyDelete