Please answer my question..it's urgent..
Attachments:
Answers
Answered by
3
The following codes have been written using Python.
#obtaining the weight on Earth as input
we = float(input("Enter your weight on Earth: "))
print()
#calculating the weight on other planets
print("Your weight on Mercury: ", we*0.38)
print("Your weight on Mars: ", we*0.38)
print("Your weight on Uranus: ", we*0.89)
print("Your weight on Venus: ", we*0.90)
print("Your weight on Saturn: ", we*1.06)
print("Your weight on Neptune: ", we*1.13)
print("Your weight on Jupiter: ", we*2.36)
float() is most suitable when the data is most likely to be in decimal form.
Equestriadash:
Thanks for the Brainliest! ^_^"
Similar questions
English,
2 months ago
English,
2 months ago
Social Sciences,
2 months ago
Computer Science,
4 months ago
Hindi,
4 months ago
Math,
10 months ago
English,
10 months ago