Tuesday, January 17, 2017

Q. How to design a character triangle shape C program as:

 ABCDE
 ABCD
 ABC
 AB
 A
Q. Write a C program to print the following continues odd reverse number pyramid pattern as:

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

Q. Write a C program to print the following number rhombus pattern design as:

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

Q. How to print or wap to a E-Shape Pyramid in C language as?

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

Q. WAP to print M shape pyramid In C language as:

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

Q. Write a C program to print a V-Shape Pyramid as:

 *   *
  * *
   *
Q. Write a C program to print the following number triangle pattern as:

0
101
21012
3210123
432101234
54321012345

Q.1 Print the Number Pyramid Pattern as:

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

Q.2 Print the Number Triangle Pattern as:

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

Q.3 Print the Equal Character Triangle as:

A
BAB
CBABC
DCBABCD
EDCBABCDE

Q.4 Print the Equal Number Triangle as:

1
212
32123
43212345
543212345

Q.5 Print the Character Pyramid as:

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 design a Character pattern as:

  Aa
  Bb Bb
  Cc Cc Cc
  Dd Dd Dd Dd
Q.16 How to make Taj Mahal shape design as:

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

Q.17 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.18 How to make half rhombus shape number triangle as:

  5
  456
  34567
  2345678
  123456789
  2345678
  34567
  456
  5

Q.19 Floyd algorithm character pattern as:

  A
  BC
  DEF
  GHIJ
  KLMNO
Q.20 How Print rectangle pattern program in C as:

  1111111
  1222221
  1233321
  1234321
  1233321
  1222221
  1111111

Q.21 Character triangle shape C Program as:

  ABCDE
  ABCD
  ABC
  AB
  A
Q. Print the rectangle pattern program in C as following design:

  1111111
  1222221
  1233321
  1234321
  1233321
  1222221
  1111111

Q. WAP (Write A Program) to making the floyd algorithm character pattern in C as:

  A
  BC
  DEF
  GHIJ
  KLMNO

Q. How to make half rhombus number triangle as:

  5
  456
  34567
  2345678
  123456789
  2345678
  34567
  456
  5

Q. Write a C program to make a continuous number pyramid with adding digit "Zero" as:

  1
  02
  003
  0004
  00005
  000006
  0000007
  00000008
  000000009

2 comments:

  1. 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



    class Pattern14
    {
    public static void main(String args[])
    {
    int i,j,k;

    for(i=1;i<=5;i++)
    {
    k=1;
    for(j=1;j<=9;j++)
    {
    if(j<=i*2-1)
    {
    System.out.print(k);
    k++;
    }

    else
    {
    System.out.print(" ");
    }
    }


    System.out.println();

    }

    }
    }

    ReplyDelete
  2. This comment has been removed by the author.

    ReplyDelete