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

    29 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

    13 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

    20 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


  • 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

    19 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

    13 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


  • 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


  • 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
    


  • Java Nested for Loops

    Write a program in Java to display the following pattern:

    3
    44
    555
    6666
    77777


Showing 1 - 10 of 87 Questions