Hi Jonahmano! This can be done very easy.
Instead of WriteLine, use Write.
WriteLine writes a string and put a extra carriage return character after, Write does not.
ddanbe
Senior Poster
3,829 posts since Oct 2008
Reputation Points: 2,070
Solved Threads: 661
No, ddanbe is correct. If you use Console.Write() then read the line it will not advance the cursor to the next line. You probably made modifications to the wrong section of the code. Here are the lines in question:
Console.WriteLine ("Enter the Name:");
Console.WriteLine ("Enter the Roll No.:");
Change those to Console.Write(); and please be careful when telling ddanbe when is wrong. He usually isn't.
sknake
Industrious Poster
4,954 posts since Feb 2009
Reputation Points: 1,764
Solved Threads: 735
Also notice you don't have an extra Console.ReadKey() or ReadLine() as a last statement to keep the console on the screen. Use code tags when you post code, just as sknake did.
ddanbe
Senior Poster
3,829 posts since Oct 2008
Reputation Points: 2,070
Solved Threads: 661
@jonahmano: ddanbe you are wrong.
No. He gave you a solution. Use Write Method.
Console.Write("Enter Name : ");
value=Console.ReadLine();
__avd
Posting Genius (adatapost)
8,648 posts since Oct 2008
Reputation Points: 2,136
Solved Threads: 1,241
Please mark this thread as solved as danny provided a solution to your question and good luck!
If you are still having issues please post back on this thread and we will be more than happy to help you.
sknake
Industrious Poster
4,954 posts since Feb 2009
Reputation Points: 1,764
Solved Threads: 735