+ 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

13th Oct 2017, 9:55 PM
Elsayed Salama
Elsayed Salama - avatar
13 Respuestas
+ 4
oh okay 1 moment
13th Oct 2017, 10:19 PM
Elsayed Salama
Elsayed Salama - avatar
+ 4
I have done it
13th Oct 2017, 10:25 PM
Elsayed Salama
Elsayed Salama - avatar
+ 3
To print out my code
13th Oct 2017, 10:12 PM
Elsayed Salama
Elsayed Salama - avatar
+ 3
oh okay thank you
13th Oct 2017, 10:16 PM
Elsayed Salama
Elsayed Salama - avatar
+ 2
no i want After every line that my output is organized for example: Drive: Answer 64 Bit: Answer
14th Oct 2017, 5:12 AM
Elsayed Salama
Elsayed Salama - avatar
+ 1
share your code
13th Oct 2017, 10:01 PM
Daniel
Daniel - avatar
+ 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
13th Oct 2017, 10:04 PM
Nic
+ 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
13th Oct 2017, 10:10 PM
Daniel
Daniel - avatar
+ 1
a question, in your code, for what is readline?
13th Oct 2017, 10:10 PM
Daniel
Daniel - avatar
+ 1
readline is not to print, its to ask to the user
13th Oct 2017, 10:13 PM
Daniel
Daniel - avatar
+ 1
share your code from your SL account and we can help you better ;-)
13th Oct 2017, 10:17 PM
Daniel
Daniel - avatar
+ 1
Not in comment, in your Sololearn list of codes
13th Oct 2017, 10:19 PM
Daniel
Daniel - avatar
14th Oct 2017, 1:04 AM
Daniel
Daniel - avatar