KnowledgeBoat Logo

Java Pattern Programs

  • Java Nested for Loops

    Write a program in Java to display the following pattern:

    1 
    9 25 49 
    81 121 169 225 289
    


  • Java Nested for Loops

    Write a program in Java to display the following pattern:

    1
    00
    111
    0000
    11111
    

    View Answer

    16 Likes


  • Java Nested for Loops

    Write a program in Java to display the following pattern:

    11111
    0000
    111
    00
    1
    


  • Java Nested for Loops

    Write a program in Java to display the following pattern:

    12345
    23456
    34567
    45678
    56789
    

    View Answer

    10 Likes


  • Java Nested for Loops

    Write a program in Java to display the following pattern:

        5
       54
      543
     5432
    54321
    

    View Answer

    15 Likes


  • Java Nested for Loops

    Write a program in Java to display the following pattern:

    1 
    3 5 
    7 9 11 
    13 15 17 19 
    21 23 25 27 29
    

    View Answer

    14 Likes


  • Java Nested for Loops

    Write a program in Java to display the following pattern:

    0 1 0 1 0 
    1 0 1 0 
    0 1 0 
    1 0 
    0
    


  • Java Nested for Loops

    Write a program in Java to display the following pattern:

    0 1 0 1 
    1 0 1 0 
    0 1 0 1 
    1 0 1 0
    


  • Java Nested for Loops

    Write a program in Java to display the following pattern:

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


  • Java Nested for Loops

    Write a program in Java to display the following pattern:

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


Showing 71 - 80 of 87 Questions