If Statements Cont
Lesson 15Author : 🦒
Last Updated : November, 2017
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");
}