

InterviewSolution
Saved Bookmarks
1. |
Write a program in java to display the following program :-* * * ** * ** ** |
Answer» class Main { public static void main(String[] ARGS) { for(INT i = 1; i <= 4; i++) { for(int J = 4; j >= i; j--) System.out.print("* "); System.out.PRINTLN(); } }}// Notice "print" and "println" both are used. |
|