- Get link
- X
- Other Apps
Posted by
Naveen M K
on
- Get link
- X
- Other Apps
Convert Km to Meter, Centimeter or Millimeter
#Convert Km to Meter, Centimeter or Millimeter
km=int(input("K.M. : "))
v=input("KM will be changed in (M,s,m) : ")
if (v=='M'):
ans=km*1000
elif(v=='s'):
ans=km*100000
elif(v=='m'):
ans=km*1000000
print("Answer : %s"%ans);
This will take user response and convert it accordingly.
Comments
Post a Comment