-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMartialArtsBelt.cs
48 lines (47 loc) · 1.58 KB
/
MartialArtsBelt.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
class Program
{
public static void Main(string[] args)
{
Console.WriteLine("[Martial Arts Belt]\nWhat belt grade are you?");
int belt = Convert.ToInt32(Console.ReadLine());
switch (belt)
{
case 0:
Console.Write("You have a black belt,\nwith 0 stripes!");
break;
case 1:
Console.Write("You have a brown belt,\nwith 2 stripes!");
break;
case 2:
Console.Write("You have a brown belt,\nwith 1 stripes!");
break;
case 3:
Console.Write("You have a green belt,\nwith 2 stripes!");
break;
case 4:
Console.Write("You have a green belt,\nwith 1 stripes!");
break;
case 5:
Console.Write("You have a blue belt,\nwith 2 stripes!");
break;
case 6:
Console.Write("You have a blue belt,\nwith 1 stripes!");
break;
case 7:
Console.Write("You have a yellow belt,\nwith 2 stripes!");
break;
case 8:
Console.Write("You have a yellow belt,\nwith 1 stripes!");
break;
case 9:
Console.Write("You have a white belt,\nwith 1 stripes!");
break;
case 10:
Console.Write("You have a white belt,\nwith 0 stripes!");
break;
default:
Console.WriteLine("You have no belt...");
break;
}
}
}