-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathURI_1050.java
More file actions
33 lines (27 loc) · 751 Bytes
/
URI_1050.java
File metadata and controls
33 lines (27 loc) · 751 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
32
33
import java.io.IOException;
import java.util.Scanner;
public class Main {
public static void main(String[] args) throws IOException {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
if(a == 61){
System.out.printf("Brasilia\n");
}else if(a == 71){
System.out.printf("Salvador\n");
}else if(a == 11){
System.out.printf("Sao Paulo\n");
}else if(a == 21){
System.out.printf("Rio de Janeiro\n");
}else if(a == 32){
System.out.printf("Juiz de Fora\n");
}else if(a == 19){
System.out.printf("Campinas\n");
}else if(a == 27){
System.out.printf("Vitoria\n");
}else if(a == 31){
System.out.printf("Belo Horizonte\n");
}else{
System.out.printf("DDD nao cadastrado\n");
}
}
}