diff options
author | Fudgerboy <91767657+Fudgerboy@users.noreply.github.com> | 2024-05-04 07:51:41 +0000 |
---|---|---|
committer | Fudgerboy <91767657+Fudgerboy@users.noreply.github.com> | 2024-05-04 07:51:41 +0000 |
commit | e6d83b531139996988be4e574d8173e7bfdc702d (patch) | |
tree | 02ea8511523d03355a72b416e6659d15ba5b46d7 /wk6/pset | |
parent | a6890df2fd655b77906aa2da708d1766e3f00096 (diff) |
Sat, May 4, 2024, 12:51 AM -07:00
Diffstat (limited to 'wk6/pset')
-rw-r--r-- | wk6/pset/sentimental-cash/cash.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/wk6/pset/sentimental-cash/cash.py b/wk6/pset/sentimental-cash/cash.py index 681945f..9433bcb 100644 --- a/wk6/pset/sentimental-cash/cash.py +++ b/wk6/pset/sentimental-cash/cash.py @@ -1 +1,9 @@ -from +from cs50 import get_float + +while True: + cents = get_float("Chnage: ") + if cents > 0: + break + +quarters = (cents / 25).round() +cents = |