diff options
author | Fudgerboy <91767657+Fudgerboy@users.noreply.github.com> | 2023-12-04 03:55:09 +0000 |
---|---|---|
committer | Fudgerboy <91767657+Fudgerboy@users.noreply.github.com> | 2023-12-04 03:55:09 +0000 |
commit | 8e5ca08fe938b2bb137098d2285a081c4f13e712 (patch) | |
tree | 9c52f2d9b5348572d1cf2785e46ca93e7add212e /wk1/pset1/cash/cash.c | |
parent | 3369fc98d04814eb799d4516007a2fd159877d1f (diff) |
Sun, Dec 3, 2023, 7:55 PM -08:00
Diffstat (limited to 'wk1/pset1/cash/cash.c')
-rw-r--r-- | wk1/pset1/cash/cash.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/wk1/pset1/cash/cash.c b/wk1/pset1/cash/cash.c index 55853e0..d819d19 100644 --- a/wk1/pset1/cash/cash.c +++ b/wk1/pset1/cash/cash.c @@ -37,7 +37,11 @@ int main(void) int get_cents(void) { - int i = get_int(""); + do + { + int i = get_int(""); + } + while(i <= 0); return cents; } |