summaryrefslogtreecommitdiff
path: root/wk1/pset1
diff options
context:
space:
mode:
Diffstat (limited to 'wk1/pset1')
-rw-r--r--wk1/pset1/cash/cash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/wk1/pset1/cash/cash.c b/wk1/pset1/cash/cash.c
index eda145e..ecb1fe9 100644
--- a/wk1/pset1/cash/cash.c
+++ b/wk1/pset1/cash/cash.c
@@ -42,7 +42,7 @@ int get_cents(void)
{
i = get_int("How many cents? ");
}
- while(i <= 0);
+ while(i < 0);
return i;
}