I’m writing this program with a bunch of “if” and “if else” statements. But I’m getting an error message with a description that says “No overload for method ‘ReadLine’ takes 1 statement” on Microsoft Visual Studio. I copied and pasted the entire code because 1. I don’t have pastebin and 2. I’m very new to c#, and there’s most likely some code in there that is either excessive or gonna screw up something later on

static void Main(string[] args)
{
Console.WriteLine("Welcome, user.");
Console.Write("Press any key to continue.");
Console.ReadKey();

Console.WriteLine("Please enter the employee's full name: ");
string fullName = Console.ReadLine();

if (fullName == "Sally Stringer")
{
string message = "Sally Stringer ";
Console.WriteLine(message);
}
else if (fullName == "Joseph Lucas")
{
string message = "Joseph Lucas ";
Console.WriteLine(message);
}
else
{
string message = "This person is not an employee and/or the entered data is unrecognizable.";
Console.WriteLine(message);
}
Console.WriteLine("Now please enter the employee's normal hours: ");
string normalHours = Console.ReadLine();

if (normalHours == "40")
{
string message = " works 40 hours, ";
Console.WriteLine(message);
}
else if (normalHours == "30")
{
string message = " works 30 hours, ";
Console.WriteLine(message);
}
else if (normalHours == "20")
{
string message = " works 20 hours, ";
Console.WriteLine(message);
}
else
{
string message = "The entered data is not recognizable.";
Console.WriteLine(message);
}
Console.ReadLine(fullName + normalHours);
}
}
}

Your very last ReadLine should probably be WriteLine as it appears you want to display it on the console

Four lines from the bottom – Console.ReadLine(fullName + normalHours)
A version of ReadLine that does whatever you’re trying to do doesn’t exist. I suspect you intended either readkey or writeline?
I meant to use writeline

source