+ 1

Write a nested loops to output this pattern: ******* ****** ***** **** *** ** *

18th Feb 2017, 9:04 PM
Vicky Li
Vicky Li - avatar
3 odpowiedzi
18th Feb 2017, 9:21 PM
Tashi N
Tashi N - avatar
+ 1
for (int i=1; i <=7; i++){ for (int j=7; i >=1; i--){ cout <<"*"; } cout <<endl; }
18th Feb 2017, 9:18 PM
saqib ali
saqib ali - avatar
0
sorry i used c++ notation but logic is same in java
18th Feb 2017, 9:20 PM
saqib ali
saqib ali - avatar