I am building a program with Name, Roll No., Marks in different subjects, Total and Average. Just wanted some advice. Pls encourage me.
class Report
{
static void Main ()
{
string s = " ";
int a;
/*,c,d,e,f,g,h,i;*/
Console.WriteLine ("Enter the Name:");
s= Console.ReadLine ();
Console.WriteLine ("Enter the Roll No.:");
a=Convert.ToInt32(Console.ReadLine ());
/*
Marks in English:\nMarks In Hindi:\nMarks in Maths:\nMarks in Social:\nMarks in G.K.:\n");
b=Convert.ToInt32(Console.ReadLine ());
c=Convert.ToInt32(Console.ReadLine ());
d=Convert.ToInt32(Console.ReadLine ());
e=Convert.ToInt32(Console.ReadLine ());
f=Convert.ToInt32(Console.ReadLine ());
g=Convert.ToInt32(Console.ReadLine ());
h=Convert.ToInt32(Console.ReadLine ());
i=Convert.ToInt32(Console.ReadLine ());*/
}
}
When I am asked to enter name it is not coming on the side ways
it is coming like this
Enter the Name:
Jonah
I want it to come in this way
Enter the Name: Jonah
please help what I must do to make my input name to be typed just beside " Enter the Name:" instead of next line.
thanks