Ejemplo n.º 1
0
        public void TestConsoleApp3()
        {
            ConsoleApp3.ConsoleApp3 v3 = new ConsoleApp3.ConsoleApp3();
            int    res = v3.Execute();
            string res = v3.Execute();

            Assert.AreEqual(0, " ", res);
        }
Ejemplo n.º 2
0
        static void Main(string[] args)
        {
            ConsoleApp3.ConsoleApp3 v3 = new ConsoleApp3.ConsoleApp3();
            v3.Execute();

            int    value1 = 0, value2 = 0;
            string chain;

            Console.WriteLine("Give me the first value:");
            chain  = Console.ReadLine();
            value1 = Convert.ToInt32(chain);
            Console.WriteLine("Give me the second value:");
            chain  = Console.ReadLine();
            value2 = Convert.ToInt32(chain);
            if (value1 <= value2)
            {
                if (value1 == value2)
                {
                    Console.WriteLine("The value of 1 is equal to value of 2");
                }
                else
                {
                    Console.WriteLine("The value of 2 is greater than value of 1");
                }
            }
            else
            {
                Console.WriteLine("The value of 1 is grater than the value of 2");
            }
            Console.ReadKey();
        }