KnowledgeBoat Logo

Java Pattern Programs

  • Java Nested for Loops

    Write a program in Java to display the following pattern:

    1
    121
    12321
    

    View Answer

    16 Likes


  • Java Nested for Loops

    Write a program in Java to display the following pattern:

    1 7 12 16 19 21 
    2 8 13 17 20 
    3 9 14 18 
    4 10 15 
    5 11 
    6
    


  • Java Nested for Loops

    Write a program in Java to display the following pattern:

    7 
    7 6 
    7 6 5 
    7 6 5 4 
    7 6 5 4 3 
    7 6 5 4 3 2 
    7 6 5 4 3 2 1
    


  • Java Nested for Loops

    Write a program in Java to display the following pattern:

    11111
    2222
    333
    44
    5

    View Answer

    46 Likes


  • Java Nested for Loops

    Write a program in Java to display the following pattern:

                    2
                3   5    
            7   11  13
        17  19  23  29
    31  37  41  43  47
    


  • Java Nested for Loops

    Write a program in Java to display the following pattern:

        1
       35
      579
     7913
    91357
    


  • Java Nested for Loops

    Write a program in Java to display the following pattern:

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

    View Answer

    17 Likes


Showing 81 - 87 of 87 Questions