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


  • 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

    16 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


  • 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

    34 Likes


  • Java Nested for Loops

    Write a program in Java to display the following pattern:

    1
    11
    101
    1001

    View Answer

    10 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


  • Java Nested for Loops

    Write a program in Java to display the following pattern:

        1
       12
      123
     1234
    12345
    


  • Java Nested for Loops

    Write a program in Java to display the following pattern:

        1
       21
      321
     4321
    54321
    


  • Java Nested for Loops

    Write a program in Java to display the following pattern:

       1
      31
     531
    7531
    


  • 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

    13 Likes


Showing 11 - 20 of 87 Questions