-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathArray program
More file actions
31 lines (28 loc) · 867 Bytes
/
Array program
File metadata and controls
31 lines (28 loc) · 867 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace array
{
class Program
{
static void Main(string[] args)
{
string[] names = new string[5];
Console.WriteLine("Enter your name : ");
names[0] = Console.ReadLine();
Console.WriteLine("Enter your name : ");
names[1] = Console.ReadLine();
Console.WriteLine("Enter your name : ");
names[2] = Console.ReadLine();
Console.WriteLine("Enter your name : ");
names[3] = Console.ReadLine();
Console.WriteLine("Enter your name : ");
names[4] = Console.ReadLine();
for (int i = 0; i<5 ; i++ )
Console.WriteLine(names[i]);
Console.ReadKey();
}
}
}