This repository has been archived by the owner on Dec 15, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathURI_2987.java
99 lines (91 loc) · 1.56 KB
/
URI_2987.java
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
import java.io.IOException;
import java.util.Scanner;
public class Main {
public static void main(String[] args) throws IOException {
String letra;
Scanner sc = new Scanner(System.in);
letra = sc.next();
switch (letra) {
case "A":
System.out.println("1");
break;
case "B":
System.out.println("2");
break;
case "C":
System.out.println("3");
break;
case "D":
System.out.println("4");
break;
case "E":
System.out.println("5");
break;
case "F":
System.out.println("6");
break;
case "G":
System.out.println("7");
break;
case "H":
System.out.println("8");
break;
case "I":
System.out.println("9");
break;
case "J":
System.out.println("10");
break;
case "K":
System.out.println("11");
break;
case "L":
System.out.println("12");
break;
case "M":
System.out.println("13");
break;
case "N":
System.out.println("14");
break;
case "O":
System.out.println("15");
break;
case "P":
System.out.println("16");
break;
case "Q":
System.out.println("17");
break;
case "R":
System.out.println("18");
break;
case "S":
System.out.println("19");
break;
case "T":
System.out.println("20");
break;
case "U":
System.out.println("21");
break;
case "V":
System.out.println("22");
break;
case "W":
System.out.println("23");
break;
case "X":
System.out.println("24");
break;
case "Y":
System.out.println("25");
break;
case "Z":
System.out.println("26");
break;
default:
break;
}
}
}