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?

18th May 2022, 11:30 PM
Foodies
Foodies - avatar
1 Answer
+ 1
Oh gosh Just I can make it using by Console.Write Lol
18th May 2022, 11:33 PM
Foodies
Foodies - avatar