24
1
using System;
2
3
public class Program
4
{
5
public static void Main()
6
{
7
int i = 10, j = 20;
8
9
if (isGreater(i, j))
10
{
11
Console.WriteLine("i is less than j");
12
}
13
14
if (isGreater(j, i))
15
{
16
Console.WriteLine("j is greater than i");
17
}
18
}
19
20
static bool isGreater(int i, int j)
21
{
22
return i > j;
23
}
24
}
Cached Result