- 1

Wap to print

* ** *** ****

20th Dec 2016, 3:01 PM
Shakirr Khan
Shakirr Khan - avatar
1 Odpowiedź
0
Try this. class Star{ public static void main(String[] args) { int num = 10; for (int i = 0;i<num ;i++ ) { for (int j = num;j!=0 ;j-- ) { System.out.print(" "); } for (int k = 0;k<i ;k++ ) { System.out.print("*"); } num--; System.out.println(); } } }
20th Dec 2016, 5:11 PM
Alikhan Suleimen
Alikhan Suleimen - avatar