static void Main(string[] args)
        {
            Moth Dale = new Moth(); //Instantiating Class Moth//

            //Dale.age = 43;
            //Dale.petTotal = 12;

            int     number1     = 4;
            int     number2     = 12;
            decimal decimal1    = 1.343m;
            decimal decimal2    = 5.353m;
            string  int1        = "3";
            string  int2        = "5";
            int     mathResult3 = Dale.Addz(int1, int2);
            int     mathResult2 = Dale.Subby(decimal1, decimal2);
            int     mathResult  = Dale.Multy(number1, number2);
            int     mathResult4 = Dale.Nothing(number2);



            Console.WriteLine(mathResult);
            Console.WriteLine(mathResult4);
            Console.WriteLine(mathResult2);
            Console.WriteLine(mathResult3);

            Console.ReadLine();
        }
Example #2
0
        static void Main(string[] args)
        {
            Moth Dale = new Moth(); //Instantiating Class Moth//

            //Dale.age = 43;
            //Dale.petTotal = 12;

            int number1 = 4;
            int number2 = 3;

            //Passing newly created int's through the methods created on on moth class, also labeling int placements as labeled in moth class methods//
            //Dale.Multy(num1: number1, num2: number2);     //Exercise only asking to print number without the math operation
            //Dale.Subby(num1: number1, num2: number2);     //Exercise only asking to print number without the math operation
            //Dale.Addz(num1: number1, num2: number2);      //Exercise only asking to print number without the math operation

            Dale.Nothing(num1: number2); //Printing number2, which is 3, to the screen from the nothing method it was passed through//

            Console.ReadLine();
        }