From 8e5ca08fe938b2bb137098d2285a081c4f13e712 Mon Sep 17 00:00:00 2001 From: Fudgerboy <91767657+Fudgerboy@users.noreply.github.com> Date: Mon, 4 Dec 2023 03:55:09 +0000 Subject: Sun, Dec 3, 2023, 7:55 PM -08:00 --- wk1/pset1/cash/cash.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'wk1/pset1/cash/cash.c') 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; } -- cgit v1.2.3