I've got an issue with my money counting script. It works fine but I need to format output in two ways but I cannot use any string functions including format but I suppose to use math lib floor ceil function.
import math
coins1 = int(input("Quantity of 1 cent coins ? ")) * 0.01
coins2 = int(input("Quantity of 2 cent coins ? ")) * 0.02
coins3 = int(input("Quantity of 5 cent coins ? ")) * 0.05
coins4 = int(input("Quantity of 10 cent coins ? ")) * 0.10
coins5 = int(input("Quantity of 20 cent coins ? ")) * 0.20
coins6 = int(input("Quantity of 50 cent coins ? ")) * 0.50
coins7 = int(input("Quantity of 1 euro coins ? ")) * 1
coins8 = int(input("Quantity of 2 euro coins ? ")) * 2
bills1 = int(input("Quantity of 5 euro bills ? ")) * 5
bills2 = int(input("Quantity of 10 euro bills ? ")) * 10
bills3 = int(input("Quantity of 20 euro bills ? ")) * 20
bills4 = int(input("Quantity of 50 euro bills ? ")) * 50
total = coins1 + coins2 + coins3 + coins4 + coins5 + coins6 + coins7 + coins8 + coins1 + bills2 + bills3 + bills4
print("You've got", total, "euro and",)
My current output is:
You've got 32792039464.8 euro and
My goal is:
You've got 32792039464 euro and 80 cents.
$32.792.39.464,80