Computer Science, asked by krishupanda2008, 4 days ago

Create an application to convert a weight given in kilograms to grams. The user will give the value for weight in kg.​

Answers

Answered by arulmozhivarman2004
1

Explanation:

I have created this program in Python. Hope it helps you. mark me as brainliest!

Coding:

num=float(input("Enter the weight (in kg): "))

g=num/1000

print("{} kilograms is equal to {} grams".format(num,g))

Output:

Enter the weight (in kg): 100

100.0 kilograms is equal to 0.1 grams

Attachments:
Similar questions