-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathArrays.cs
More file actions
25 lines (23 loc) · 688 Bytes
/
Copy pathArrays.cs
File metadata and controls
25 lines (23 loc) · 688 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
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace C_Sharp_Lesson_One
{
internal class Arrays
{
public static void Arr()
{
int[] randomNum = { 0, 2, 4, 5, 7, 8, 10 };
string[] friends = new string[5];
friends[0] = "Ram";
friends[1] = "Shyam";
friends[2] = "Gita";
friends[3] = "Gorey";
friends[4] = "Adams";
Console.WriteLine("The Random number is " + randomNum[5]);
Console.WriteLine("My friends are " + friends[0] + ", " + friends[2] + ", " + friends[4]);
}
}
}