-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathProgram.cs
31 lines (28 loc) · 938 Bytes
/
Program.cs
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;
namespace Harendra
{
class Prajapati
{
public static void Main(string[] args)
{
Console.WriteLine("Please select from the following");
Console.WriteLine("1.Red");
Console.WriteLine("2.Green");
Console.WriteLine("3.Yellow");
Console.WriteLine("Enter your choice");
int ch=Convert.ToInt16(Console.ReadLine());
switch(ch){
case 1: Console.WriteLine("You Selected : Red " );
break;
case 2:
Console.WriteLine("You Selected : Greed");
break;
case 3:
Console.WriteLine("You Selected : Yellow ");
break;
default: Console.WriteLine("Wrong Selection Try again");
break;
}
}
}
}