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

    617 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

    210 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

    166 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

    111 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

    196 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

    64 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

    58 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

    54 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

    60 Likes


  • Java Nested for Loops

    Write a program in Java to display the following pattern:

    3
    44
    555
    6666
    77777

    View Answer

    38 Likes


Showing 1 - 10 of 87 Questions