KnowledgeBoat Logo

Java Pattern Programs

  • Java Nested for Loops

    Write a program in Java to display the following pattern:

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

    View Answer

    760 Likes


  • Java Nested for Loops

    Write a program in Java to display the following pattern:

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

    View Answer

    254 Likes


  • Java Nested for Loops

    Write the program in Java to display the following pattern:

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

    View Answer

    189 Likes


  • Java Nested for Loops

    Write the program in Java to display the following pattern:

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

    View Answer

    132 Likes


  • Java Nested for Loops

    Write a program in Java to display the following pattern:

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

    View Answer

    234 Likes


  • Java Nested for Loops

    Write the program in Java to display the following pattern:

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

    View Answer

    78 Likes


  • Java Nested for Loops

    Write the program in Java to display the following pattern:

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

    View Answer

    70 Likes


  • Java Nested for Loops

    Write the program in Java to display the following pattern:

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

    View Answer

    61 Likes


  • Java Nested for Loops

    Write a program in Java to display the following pattern:

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

    View Answer

    72 Likes


  • Java Nested for Loops

    Write a program in Java to display the following pattern:

    3
    44
    555
    6666
    77777

    View Answer

    47 Likes


Showing 1 - 10 of 87 Questions