From 94cd12ac8250ef478b1c50ed3161a144c466e95c Mon Sep 17 00:00:00 2001 From: Dan Buch Date: Tue, 16 Apr 2024 20:47:34 -0400 Subject: [PATCH] While backward --- lcthw/ex9.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lcthw/ex9.c b/lcthw/ex9.c index d76067e..60923c1 100644 --- a/lcthw/ex9.c +++ b/lcthw/ex9.c @@ -2,10 +2,10 @@ int main(int argc, char *argv[]) { - int i = 0; - while (i < 25) { + int i = 25; + while (i > 0) { printf("%d", i); - i++; + i--; } // need this to add a final newline