else if Chain
Use else if to test multiple conditions.
int score = 85;if (score >= 90)Console.WriteLine("A");else if (score >= 80)Console.WriteLine("B");else if (score >= 70)Console.WriteLine("C");elseConsole.WriteLine("F");Run the Application
Section titled “Run the Application”dotnet runResult
Section titled “Result”B