summaryrefslogtreecommitdiff
path: root/wk1/pset1/cash/cash.c
diff options
context:
space:
mode:
Diffstat (limited to 'wk1/pset1/cash/cash.c')
-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 fdad449..3f561b5 100644
--- a/wk1/pset1/cash/cash.c
+++ b/wk1/pset1/cash/cash.c
@@ -47,8 +47,8 @@ int get_cents(void)
int calculate_quarters(int cents)
{
-
- return 0;
+ cents = cents / 25;
+ return cents;
}
int calculate_dimes(int cents)