Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- n=int(input("Если вы хотите перевести метры в километры, введите '1'\nЕсли хотите перевести километры в метры, введите '2'\n: "))
- if n==1:
- m=int(input('Введите количество метров: '))
- print(m/1000, ' км.')
- elif n==2:
- m=int(input('Введите количество километров: '))
- print(m*1000, ' м.')
- else:
- print("Ошибка, нужно ввести '1' или '2'")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement