Print "1" if x
is equal to y
, print "2" if x
is greater than y
, otherwise print "3".
int x = 50;
int y = 50;
@(2) (x @(2) y)
{
Console.WriteLine("1");
}
@(7) (x @(1) y)
{
Console.WriteLine("2");
}
@(4)
{
Console.WriteLine("3");
}
int x = 50;
int y = 50;
if (x == y)
{
Console.WriteLine("1");
}
else if (x > y)
{
Console.WriteLine("2");
}
else
{
Console.WriteLine("3");
}