summaryrefslogtreecommitdiff
path: root/wk6/pset
diff options
context:
space:
mode:
authorFudgerboy <91767657+Fudgerboy@users.noreply.github.com>2024-05-04 07:51:41 +0000
committerFudgerboy <91767657+Fudgerboy@users.noreply.github.com>2024-05-04 07:51:41 +0000
commite6d83b531139996988be4e574d8173e7bfdc702d (patch)
tree02ea8511523d03355a72b416e6659d15ba5b46d7 /wk6/pset
parenta6890df2fd655b77906aa2da708d1766e3f00096 (diff)
Sat, May 4, 2024, 12:51 AM -07:00
Diffstat (limited to 'wk6/pset')
-rw-r--r--wk6/pset/sentimental-cash/cash.py10
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 =