public static void Main()
Console.WriteLine("Let's add infinite numbers");
Console.Write("Enter the first number: ");
obc.fn = Convert.ToInt32(Console.ReadLine());
Console.Write("Enter the second number: ");
obc.sn = Convert.ToInt32(Console.ReadLine());
Console.Write("Enter the another number: ");
obc.tn = Convert.ToInt32(Console.ReadLine());
Console.WriteLine(obc.add(obc.tn, obc.sn));
Console.Write("Enter the another number: ");
x = Convert.ToInt32(Console.ReadLine());
Console.WriteLine(obc.add(x, obc.sn));
Console.WriteLine("You entered zero, program ended");
public void addfirsttwo(){
public int add(int x, int y){