clink on this code: using System; public class HelloWorld { public static void Main(string[] args) { for (int i = 1; i <= 5; i++) { for (int j = i; j <=5; j++) { Console.Write(" "); } for (int k = 1; k <= i; k++) { Console.Write("*"); } for (int l = 2; l <= i; l++) { Console.Write("*"); } Console.WriteLine(); } } } code: using System; public class HelloWorld { public static void Main(string[] args) { for (int i = 1; i <=5; i++) { for (int j = 1; j <=i ; j++) { Console.Write(" "); } for (int k = i; k <=5 ; k+
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); }
CODE: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace CP_Methods_paractise { class Program { public void addition(double num1, double num2) { double result = num1 + num2; Console.WriteLine("Addition of Numbers:{0}",result); } public void Substruction(double num1, double num2) { double result = num1 - num2; Console.WriteLine("Substruction of Numbers:{0}", result); } public void Multiplication(double num1, double num2) { double result = num1 * num2; Console.WriteLine("Multiplication of Numbers:{0}", result); } public void Division(double num1, double num2) { double result = num1 / num2; Console.WriteLine("Division of Numbers:{0}", result); } static void Main(stri
Comments
Post a Comment