0

who can tell how to output to a string using a (for) loop?

for (int g = 0; g < yards; g++ ) { Console.WriteLine ("Ra!"); }

22nd Feb 2020, 5:19 AM
GAG98
GAG98 - avatar
3 Antworten
+ 2
Probably you want to display those Ra! on the same line: Use: Console.Write("Ra!");
22nd Feb 2020, 6:13 AM
Mihai Apostol
Mihai Apostol - avatar
+ 1
Thanks maaaaaaaan
22nd Feb 2020, 7:44 AM
GAG98
GAG98 - avatar
0
Gleb You're welcome.
22nd Feb 2020, 7:48 AM
Mihai Apostol
Mihai Apostol - avatar