+ 1
Line it up, I donāt need it stacked. (Solved)
Iām working on a project in C#, and the input needs to be in a straight line. Yet every time I run it, it comes out as a stack. (Problem is Multiple of 3 in C#) Input: 7 Expected output: 12*45*7 Actual output 7 * 5 4 * 2 1 https://code.sololearn.com/cd5DvrR6x3LH/?ref=app You can look at the code
2 Answers
+ 2
First of all, you are counting downwards (from 7 to 1) except upwards.
To bring the output into the same line, you should use the āConsole.Write()ā method (without the āLineā)
Hope that could help you
+ 1
cetozofumee
Just use Write method because WriteLine method adds new line.