import java.util.*;
class Pattern1 { public static void main(String[] args) { int i, j; for (i = 1; i <= 5; i++) { for (j = i; j >= 1; j--) { System.out.print(j); } System.out.println(); } } } |
OUTPUT:
1 21 321 4321 54321 |
Android Tutorial -Learn Android Programming and how to develop android application,activity,lifecycle,service,layout,architecture,debugging,bugs ,handling event others.
No comments:
Post a Comment