static void Main() { DOUBLE d1 = new DOUBLE(Calculator.DoubleS); SOMA s1 = new SOMA(Calculator.Soma); Console.WriteLine("Soma: {0}\nDobro: {1}", s1(25, 26, 23), d1(5)); }
static void Main(string[] args) { int a, b, SOMA; a = int.Parse(Console.ReadLine()); b = int.Parse(Console.ReadLine()); SOMA = a + b; Console.WriteLine($"SOMA = {SOMA.ToString()}"); Console.ReadKey(); }