Exemple #1
0
 static void Main()
 {
     Calc c = new Calc();
     int ans = c.Add(23,14);
     Console.WriteLine("23 + 14 равно {0}.", ans);
     // Ожидание <Enter>
     Console.ReadLine();
 }
Exemple #2
0
        static void Main(string[] args)
        {
            Calc c   = new Calc();
            int  ans = c.Add(5, 1);

            Console.WriteLine("5 + 1 is {0}.", ans);
            Console.ReadLine();
        }
Exemple #3
0
        private static void Main(string[] args)
        {
            var c   = new Calc();
            var ans = c.Add(10, 84);

            Console.WriteLine("10 + 84 is {0}.", ans);
            Console.ReadLine();
        }
Exemple #4
0
        public static void Main()
        {
            Calc c   = new Calc();
            int  ans = c.Add(10, 84);

            Console.WriteLine("10 + 84 is {0}.", ans);
            Console.ReadLine();
        }
static void Main()
{
Calc c = new Calc () ;
int ans = c.Add(10, 84);
Console.WriteLine("10 + 84 is {0}.”, ans);
// Ожидать нажатия пользователем клавиши <Enter> перед завершением работы.
Console.ReadLine();
}
Exemple #6
0
 static void Main()
 {
     Calc c = new Calc();
     int ans = c.Add(10, 84);
     Console.WriteLine("10 + 84 is {0}.", ans);
     Console.ReadLine();
     MessageBox.Show("Hello...");
 }
        static void Main(string[] args)
        {
            Calc c   = new Calc();
            int  ans = c.Add(10, 84);

            Console.WriteLine("10 + 84 is {0}", ans);
            //  Wait for the user to press the Enter key before shutting down.
            Console.ReadLine();
        }
Exemple #8
0
        static void Main(string[] args)
        {
            Calc c   = new Calc();
            int  ans = c.Add(10, 84);

            Console.WriteLine("10 + 84 is {0}.", ans);
            // Ожидать нажатия пользователем клавиши <Enter> перед выходом.
            Console.ReadLine();
        }
        static void Main()
        {
            Calc c   = new Calc();
            int  ans = c.Add(10, 84);

            Console.WriteLine("10 + 84 is {0}", ans);
            //wait for user to press enter before shutting down
            Console.ReadLine();
        }
Exemple #10
0
        static void Main()
        {
            Calc c = new Calc();
            int ans = c.Add(10, 84);
            Console.WriteLine("10 + 84 = {0}.", ans);

            // �ȴ��û�����س�����������
            Console.ReadLine();
        }