Write a program in C# to store 10 names in an Array.
Sample Solution
C# Sharp Code
Sample Solution
C# Sharp Code
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Enter_10_name { class Program { static void Main(string[] args) { string[] array = new string[10]; Console.WriteLine("Enter a student name"); for (int i = 0; i < 10; i++) { array[i] = Console.ReadLine(); } Console.WriteLine("Please find below enter Name \n"); for (int j = 9; j >= 0; j--) { Console.WriteLine(array[j]); } Console.ReadLine(); } } }
Sample Output
No comments:
Post a Comment