0
How we print a result in single line?
using System; using System.Collections.Generic; namespace SoloLearn { class Program { static void Main(string[] args) { int number = Convert.ToInt32(Console.ReadLine()); //your code goes here for(int i=1; i< number; i++) { if(i%3==0) { Console.WriteLine('*'); } else { Console.WriteLine(i); } } Console.WriteLine(number); } } } Help
2 Answers
+ 2
Use only Console.Write() if you don't want a line break.
+ 3
Please make sure you're tagging the appropriate language.