summaryrefslogtreecommitdiff
path: root/ROMs/hello_c.c
diff options
context:
space:
mode:
authorMelodi <62381002+Melodi17@users.noreply.github.com>2025-08-09 09:45:22 +1000
committerMelodi <62381002+Melodi17@users.noreply.github.com>2025-08-09 09:45:22 +1000
commit7f334796e8d0619dc744b1345a7b7b73a27220f9 (patch)
tree709c9a7df920d8eb1e779df4f878a25596303f17 /ROMs/hello_c.c
parentd36d51429d604f0ab3b2076c4c05e28ebf9b52c5 (diff)
added method calling and for loops
Diffstat (limited to 'ROMs/hello_c.c')
-rw-r--r--ROMs/hello_c.c11
1 files changed, 6 insertions, 5 deletions
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