using System;
//Q4. Write a Class Calculator. Inside class calculator create a method Greater which returns an integer. Greater has two int parameters.
//It checks which of the two number is greater and returns the greater value.
//Call the method Greater in Main method, Print the value returned by Method Greater.
public class calculator
{
public int Sum(int a, int b)
if (a > b)
return a;
}
else
return b;
public class Program
public static void Main()
calculator ob = new calculator();
int c = ob.Sum(14, 13);
Console.WriteLine(c);