Write a program to display kilometre value into metre and kilometres value into centimetre seperately.using menu-driven concept.In python.class 11
Answers
Answered by
1
Answer:
print("for kilometres to meters press 1 or kilometers to centimetres press 2")
n=int(input("enter the no u want to proceed"))
if n==1:
k=int(input("no of kilometres u want to")) convert to meters")
a=k*1000
print(a,"your answer in meters")
if n==2:
k1=int(input("no of kilometers u want to convert to centimetres"))
a1=k1*1000000
print(a1,"your answer in centimetres")
Similar questions