+ 5
Output
Hey guys, my output is really bad I want that when I have more than 5 Console.WriteLine() that my output code goes like in a straight line if you understand what I mean that the output gets readable for example: Console.WriteLine("OS: {0}", Environment.OSVersion); Console.WriteLine("Number of processors: {0}", Environment.ProcessorCount); Console.WriteLine(".NET Version: {0}", Environment.Version); I want that the Output looks like this: OS: ... Number of processors: ... .NET Version: ... thank you all
13 Antworten
+ 4
oh okay 1 moment
+ 4
I have done it
+ 3
To print out my code
+ 3
oh okay thank you
+ 2
no i want After every line that my output is organized for example:
Drive: Answer
64 Bit: Answer
+ 1
share your code
+ 1
Append your written string to end with the new line character:
Console.WriteLine("....", var, "\n")
https://msdn.microsoft.com/en-us/library/zdf6yhx5(v=vs.110).aspx
+ 1
If you know how much WriteLine do you have then you can do like Nic say if not, you must to do a counter for example even I could think in a function to print which do that verifying counter
+ 1
a question, in your code, for what is readline?
+ 1
readline is not to print, its to ask to the user
+ 1
share your code from your SL account and we can help you better ;-)
+ 1
Not in comment, in your Sololearn list of codes
0
https://code.sololearn.com/ccp9PQsuQjHP/?ref=app
Something like that?