1049.Animal in python
This is the solution of this problem in python:
A=int(input())
if(A==61):
print("Brasilia")
elif(A==71):
print("Salvador")
elif(A==11):
print("Sao Paulo")
elif(A==21):
print("Rio de Janeiro")
elif(A==32):
print("Juiz de Fora")
elif(A==19):
print("Campinas")
elif(A==27):
print("Vitoria")
elif(A==31):
print("Belo Horizonte")
else:
print("DDD nao cadastrado")
No comments