If Statements Cont
Lesson 15Author : GOUP
Last Updated : September, 2020
Code
bool isStudent = false;
bool isSmart = false;
if (isStudent && isSmart)
{
Console.WriteLine("You are a student");
}
else if (isStudent && !isSmart)
{
Console.WriteLine("You are not a smart student");
}
else
{
Console.WriteLine("You are not a student and not smart");
}
// >, <, >=, <=, !=, ==
if (1 < 3)
{
Console.WriteLine("number comparison was true");
}