Header Ads

C Pyramids

Questions on C pyramid for creating different shapes using C programs:


   1. Write a program to create the following Pyramid using C program?
        123456
123456
123456
123456
123456
123456
   2. Write a program to create the following Pyramid using C program?
        @
@@
@@@
@@@@
@@@@@
   3. Write a program to create the following Pyramid using C program?
                      @
           @@
        @@@
 @@@@
 @@@@@
   4. Write a program to create the following Pyramid using C program?
       @@@@@@
@@@@@
@@@@
@@@
@@
@
   5. Write a program to create the following Pyramid using C program?
         1 2 3 4 5
   1 2 3 4
    1 2 3
     1 2
       1
   6. Write a program to create the following Pyramid using C program?
         A
 BB
 CCC
 DDDD
 EEEEE
 FFFFFF
 GGGGGGG
 HHHHHHHH
 IIIIIIIIIIIIIIIIIII
   7. Write a program to create the following Pyramid using C program?
         A
 B C
 D E F
 G H I J
 K L M N O
   8. Write a program to create the following Pyramid using C program?
         A
 A B
 A B C
 A B C D
 A B C D E
  9. Write a program to create the following Pyramid using C program?
                   A
          A B
        A B C
       A B C D
     A B C D E
  A B C D E F                                                      
  10. Write a program to create the following Pyramid using C program?
           A  B  C  D  E  F
       A  B  C D  E
         A B  C  D
          A  B C
            A  B
              A
 11. Write a program to create the following Pyramid using C program?
        1
12
123
1234
 12345
1234
123
12
1
  12. Write a program to create the "CPROGRAMS" string in following style using C program?
          C
  CP
  CPR
  CPRO
  CPROG
  CPROGR
  CPROGRA
  CPROGRAM
  CPROGRAMS
  CPROGRAM
  CPROGRA
  CPROGR
  CPROG
  CPRO
  CPR
  CP
  C

  13. Write a program to create the following Pyramid using C program?
        1
22
333
4444
55555
666666
55555
4444
333
22
1
 14. Write a program to create the following Pyramid using C program?
ABCDEFGFEDCBA
ABCDEF   FEDCBA
ABCDE        EDCBA
ABCD             DCBA
ABC                   CBA
AB                         BA
A                              A

 15. Write a program to create the following Pyramid using C program?
                   A
          A B
        A B C
       A B C D
     A B C D E
   A B C D E F
           A B C D E
A B C D
A B C
A B
A   


16. Write a program to create the following diamond shape pyramid using integers?
                     
       1
      1  2
    1  2  3
  1  2  3  4
1  2  3  4  5
1  2  3  4
 1  2  3
   1  2
1

17.Write a C program for pascal triangle using square of numbers?

                   1
          1 4
        1 4 9
       1 4 9 16
     1 4 9 16 25

18.Write a C program to create the string "INDIAN"  Pyramid shape?


19.Write a C program to create the rectangle using stars?

20.Write a C program to rectangle shape using integers?
http://dotcprograms.blogspot.in/2015/03/how-to-create-rectangle-using-integers.html

21.Write a C program to create the following pyramid?


22.Write a C program to create the following pyramid?


23.Write a C program to create the following pyramid?


http://dotcprograms.blogspot.in/2015/03/c-program-for-left-hand-side-right.html

24.Write a C program to print pascal triangle in below format?


25.Write a C program to create the following pyramid?


26.Write a C program to create the following pyramid?


27.Write a C program to print pascal triangle in below format?


1 comment: