summaryrefslogtreecommitdiff
path: root/wk1/pset1/cash
diff options
context:
space:
mode:
authorFudgerboy <91767657+Fudgerboy@users.noreply.github.com>2023-12-04 03:55:57 +0000
committerFudgerboy <91767657+Fudgerboy@users.noreply.github.com>2023-12-04 03:55:57 +0000
commit9766c14360dd048ae6e0209db087a8bb306cf842 (patch)
tree53d58e8f33a12439ec9ecdf4e64dbffce27c0860 /wk1/pset1/cash
parent8e5ca08fe938b2bb137098d2285a081c4f13e712 (diff)
Sun, Dec 3, 2023, 7:55 PM -08:00
Diffstat (limited to 'wk1/pset1/cash')
-rw-r--r--wk1/pset1/cash/cash.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/wk1/pset1/cash/cash.c b/wk1/pset1/cash/cash.c
index d819d19..8fa5cfc 100644
--- a/wk1/pset1/cash/cash.c
+++ b/wk1/pset1/cash/cash.c
@@ -39,10 +39,10 @@ int get_cents(void)
{
do
{
- int i = get_int("");
+ int i = get_int("How many cents? ");
}
while(i <= 0);
- return cents;
+ return i;
}
int calculate_quarters(int cents)