0
How can I make a output on sameline? (C#)
int n = Convert.ToInt32(Console.ReadLine()); for(int x = 1; x <= n; x++) if (x%3 == 0) Console.WriteLine("*"); else Console.WriteLine(x); According to this cord, its output is 1 2 * 3 n . . . But i wanna make this on one line like 12*45*78.... this How can i do?
1 Answer
+ 1
Oh gosh
Just I can make it using by Console.Write
Lol