CODE: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace CP_Methods_paractise { class Program { public static void addition(double num1, double num2) { double result = num1 + num2; Console.WriteLine("Addition of Numbers:{0}",result); } public static void Substruction(double num1, double num2) { double result = num1 - num2; Console.WriteLine("Substruction of Numbers:{0}", result); } public static void Multiplication(double num1, double num2) { double result = num1 * num2; Console.WriteLine("Multiplication of Numbers:{0}", result); } public static void Division(double num1, double num2) { double result = num1 / num2; Console.WriteLine("Division of Numbers:{0}", result); }
Comments
Post a Comment