How should I create a code that print "*" n times like I say in description with control structure in java. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How should I create a code that print "*" n times like I say in description with control structure in java.

I mean row 1 has 1 * row 2 has 2 * separated with "\t" and so on * * * * * *

30th Aug 2017, 2:00 PM
Erfan Etesami
Erfan Etesami - avatar
1 Answer
+ 4
Well, you can set it to alternate bw "*" and "\t" with "*" default as the beginning/first one. Do this up until (n) That's a start.
30th Aug 2017, 2:18 PM
J.G.
J.G. - avatar