public class Shape { public static void main(String[] args) { for (int i = 0; i < 5; i++) { for (int j = 0; j < 5 - i; j++) { System.out.print('*'); } System.out.println(); } } }
Need a fast expert's response?
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!
Comments
Leave a comment