I'm trying to write a program, and I want the program to read a line.
it is giving me this error
Cannot implicitly convert type 'string' to 'int
How can I convert the string to int? This is the part of the program that's giving the error.
class engineering : faculty
{
public engineering() \\constructor
{
}
public int maths_grade;
public override void fill_form()
{
Console.WriteLine("Insert Maths Grades: ");
int maths_grade = Console.ReadLine();
}
}