- 1
What is the output
string x="*"; int y=5; do{ x+="\n+"; system.out.print(x); y--;} while (y>=0);
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:
*
+*
+
+*
+
+
+*
+
+
+
+*
+
+
+
+
+*
+
+
+
+
+
+
+ 1
* and +
0
thank you đ