KnowledgeBoat Logo

Java Pattern Programs

  • Java Nested for Loops

    Write the program in Java to display the following pattern:

    9 9 9 9 9
    7 7 7 7 7
    5 5 5 5 5
    3 3 3 3 3
    1 1 1 1 1

    View Answer

    54 Likes


  • Java Nested for Loops

    Write the program in Java to display the following pattern:

    9
    7 9
    5 7 9
    3 5 7 9
    1 3 5 7 9

    View Answer

    57 Likes


  • Java Nested for Loops

    Write the program in Java to display the following pattern:

    9
    9 7
    9 7 5
    9 7 5 3
    9 7 5 3 1

    View Answer

    37 Likes


  • Java Nested for Loops

    Write a program in Java to display the following pattern:

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

    View Answer

    258 Likes


  • Java Nested for Loops

    Write a program in Java to display the following pattern:

    1
    11
    101
    1001

    View Answer

    46 Likes


  • Java Nested for Loops

    Write a program in Java to display the following pattern:

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

    View Answer

    24 Likes


  • Java Nested for Loops

    Write a program in Java to display the following pattern:

        1
       12
      123
     1234
    12345
    

    View Answer

    58 Likes


  • Java Nested for Loops

    Write a program in Java to display the following pattern:

        1
       21
      321
     4321
    54321
    

    View Answer

    84 Likes


  • Java Nested for Loops

    Write a program in Java to display the following pattern:

       1
      31
     531
    7531
    

    View Answer

    12 Likes


  • Java Nested for Loops

    Write a program in Java to display the following pattern:

    1
    3 1
    5 3 1
    7 5 3 1
    9 7 5 3 1

    View Answer

    97 Likes


Showing 11 - 20 of 87 Questions