static void Main(string[] args) { Moth Dale = new Moth(); //Instantiating Class Moth// int number1 = 4; int number2 = 12; //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); //Passes two ints from list Console.WriteLine("Enter an integar"); int myAnswer1 = Convert.ToInt32(Console.ReadLine()); Console.WriteLine("Enter another integar if you wish, or not, no worries."); if (Console.ReadLine() != "") { int myAnswer2 = Convert.ToInt32(Console.ReadLine()); Dale.Subby(num1: myAnswer1, num2: myAnswer2); } else { Dale.Subby(num1: myAnswer1); } Console.ReadLine(); }
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(); }