- 1

What is the output

string x="*"; int y=5; do{ x+="\n+"; system.out.print(x); y--;} while (y>=0);

8th Nov 2017, 6:06 AM
Map Map
Map Map - avatar
3 Answers
+ 2
You'll get an error, because the s in String and System both need to be capitalized. Once those are fixed you get: * +* + +* + + +* + + + +* + + + + +* + + + + + +
8th Nov 2017, 8:19 AM
ChaoticDawg
ChaoticDawg - avatar
+ 1
* and +
8th Nov 2017, 6:58 AM
Daniel
Daniel - avatar
0
thank you 😍
8th Nov 2017, 2:02 PM
Map Map
Map Map - avatar