Exemplo n.º 1
0
        static void Main(string[] args)
        {
            int a = 100;
            int b = 200;
            int ret;

            numberManipulator n = new numberManipulator();

            ret = n.findMax(a, b);
            Console.WriteLine("Max value is: {0}", ret);
            Console.ReadKey();
        }
Exemplo n.º 2
0
        static void Main(string[] args)
        {
            numberManipulator n = new numberManipulator();
            int a, b;

            n.getValues(out a, out b);

            Console.WriteLine("After method call, value of a: {0}", a);
            Console.WriteLine("After method call, value of b: {0}", b);

            Console.ReadLine();
        }
Exemplo n.º 3
0
        static void Main(string[] args)
        {
            numberManipulator n = new numberManipulator();

            int a = 100;
            int b = 200;

            Console.WriteLine("Befor Swap, value of a: {0}", a);
            Console.WriteLine("Befor Swap, value of b: {0}\n", b);

            n.swap(a, b);

            Console.WriteLine("After swap, value of a: {0}", a);
            Console.WriteLine("After swap, value of b: {0}", b);

            Console.ReadLine();
        }