b = int(input("Amount of litres: "))
k = int(input("Amount of km's: "))
print("Precise cost for 1 litre: " + str(k / b))
print("Rounded cost for 1 litre: " + str(k // b))
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
b = int(input("Amount of litres: "))
k = int(input("Amount of km's: "))
print("Precise cost for 1 litre: " + str(k / b))
print("Rounded cost for 1 litre: " + str(k // b))