From d7bb96261512a4730d5277f05b27a87bf6aabdbb Mon Sep 17 00:00:00 2001 From: dvorakmortonxd Date: Thu, 21 May 2026 22:55:34 +0200 Subject: [PATCH] Introduced a different intro comments and added a function --- main.c | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/main.c b/main.c index ab057b8..60577e2 100644 --- a/main.c +++ b/main.c @@ -1,8 +1,11 @@ -// -// Created by martin on 5/21/26. -// - +// Welcome to my journey of learning the fuckass language that is C #include + +int multiply(int num_one, int num_two) { + int result = num_one*num_two; + return result; +} + int main() { // HELLO WORLD SECTION printf("HELLO WORLD BELOW:\n"); // DIVIDER @@ -63,6 +66,11 @@ int main() { for (int i=0; i<=3; i++) { printf("i=%d\n", i); } + + // FUNCTION + printf("\n\nFUNCTION (MULTIPLY) BELOW:\n"); // DIVIDER + printf("%d * %d = %d", 5, 30, multiply(5,30)); + // END return 0; } \ No newline at end of file