Program 1
Write a program that asks the user for a weight in kilograms and converts it to pounds. There are 2.2 pounds in a kilogram.
Program:
KG=float(input("Enter the weight in Kilograms:"))
pounds=2.2*KG
print("weight in pounds:",pounds)
output:
Enter the weight in Kilograms:56
weight in pounds: 123.20000000000002
No comments:
Post a Comment