//Sample Solution
using System;
namespace IfStatement
{
class Program
{
static void Main(string[] args)
{
int socks = 3;
if(socks <= 3){
Console.WriteLine("Time to do laundry!");
} else {
Console.WriteLine("Not yet time to do laundry!");
}
socks = 6;
if(socks <= 3){
Console.WriteLine("Time to do laundry!");
} else {
Console.WriteLine("Not yet time to do laundry!");
}
}
}
}
No comments:
Post a Comment