Solution :
import
#First we need to define the value of each coin
= 5
= 10
= 25
#Here we define
to hold the
number of each coin
s = 0
s = 0
s = 0
= 0
= int(
("Please enter an
of money you have in
: "))
if
and
100:
if
>= 25:
quarters =
/ quarter
=
% quarter
if
>= 10:
dimes = cents/dime
=
% dime
if
>= 5:
nickels =
/nickel
=
% nickel
if
> 0:
pennys =
/ penny
= 0
print("The coins are: "
"\
", math.floor(quarters),
"\
", math
(dimes), "\
", math
(nickels), "\\Pennies", math
(pennys))
else:
print("wrong value")