コード例 #1
0
    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));
    }
コード例 #2
0
        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();
        }