c-first-steps

a C playground
Index Commits Files Refs README
commit 5501a6a9d8063ed293c9fa9c6856f59375912c19
parent fca9104eb95361f94397a160c75fd3b55bba5dda
Author: Martin J. Klöckner <64109770+klewer-martin@users.noreply.github.com>
Date:   Thu, 29 Oct 2020 20:36:05 -0300

Update factorial.c
Diffstat:
Msrc/factorial.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/factorial.c b/src/factorial.c
@@ -15,7 +15,7 @@ int main(void) {
     }
 
     res = 1;
-    for(i = 1; 1 <= fact; i++) {
+    for(i = 1; i <= fact; i++) {
         res =* i;
     }