c-first-steps

a C playground
Index Commits Files Refs README
commit 67a26a2bcd08c009ac987ede2ffab4c8a57c2adf
parent 5501a6a9d8063ed293c9fa9c6856f59375912c19
Author: Martin J. Klöckner <64109770+klewer-martin@users.noreply.github.com>
Date:   Thu, 29 Oct 2020 20:36:59 -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
@@ -16,7 +16,7 @@ int main(void) {
 
     res = 1;
     for(i = 1; i <= fact; i++) {
-        res =* i;
+        res *= i;
     }
 
     printf("%d! = %d\n", fact, res);