using System; namespace Coding { class Program { //static int Add(int number1, int number2) //{ //int sum1; //sum1 = number1 + number2; //return sum1; //} //static int minus(int number3, int number4) //{ //int subtract; //subtract = number4 - number3; //return subtract; //} //static int multiply(int number5, int number6) //{ //int mulp; //mulp = number5 * number6; //return mulp; //} //static void Main(string[] args) //{ //int number1; //int number2; //string op; //Console.WriteLine("Enter number 1 "); //number1 = Convert.ToInt32(Console.ReadLine()); //Console.WriteLine("Enter number 2 "); //number2 = Convert.ToInt32(Console.ReadLine()); //Console.WriteLine("Enter Operator "); //op = Console.ReadLine(); //if (op == "+") //{ //int b = Add(number1, number2); //Console.WriteLine(b); //} //else if (op == "-") //{ //int c = minus(number1, number2); //Console.WriteLine(c); //} //else if (op == "*") //{ //int e = multiply(number1, number2); //Console.WriteLine(e); //} static void Main(string[] args) { int[] num = { 23, 56, 91, 90, 87 }; Console.WriteLine(num[4]); string[] name = { "Kamlesh", "Ayesha", "Ali", "John" }; Console.WriteLine(name[3]); for (int i = 0; i <= 4; i = i + 3) { Console.WriteLine(num[0]); Console.WriteLine(name[1]); } for (int e = 0; e <= 3; e = e + 1) { Console.WriteLine(name[e]); } Console.WriteLine("Enter total number of elements"); int number = Convert.ToInt32(Console.ReadLine()); char[] alphabets = new char[number]; for (int e = 0; e <number; e = e + 1) { Console.WriteLine("enter character"); alphabets[e] = Convert.ToChar(Console.ReadLine()); } for (int e = 0; e < number; e = e + 1) { Console.WriteLine(alphabets[e]); } Console.ReadLine(); } } }