From 7f334796e8d0619dc744b1345a7b7b73a27220f9 Mon Sep 17 00:00:00 2001 From: Melodi <62381002+Melodi17@users.noreply.github.com> Date: Sat, 9 Aug 2025 09:45:22 +1000 Subject: added method calling and for loops --- ROMs/hello_c.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'ROMs/hello_c.c') diff --git a/ROMs/hello_c.c b/ROMs/hello_c.c index 3310b6b..839c12d 100644 --- a/ROMs/hello_c.c +++ b/ROMs/hello_c.c @@ -1,8 +1,9 @@ +int add(int a, int b) +{ + return a + b; +} + int main() { - //comment - int a = 5; - if (a == 5) - return 99; - return 0; + return add(1, 2); } \ No newline at end of file -- cgit v1.3.1