summaryrefslogtreecommitdiff
path: root/sumain.c
diff options
context:
space:
mode:
Diffstat (limited to 'sumain.c')
-rw-r--r--sumain.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/sumain.c b/sumain.c
new file mode 100644
index 0000000..8db2ab2
--- /dev/null
+++ b/sumain.c
@@ -0,0 +1,14 @@
+#include <u.h>
+#include <libc.h>
+
+int sum(int, int);
+
+void
+main()
+{
+ int n;
+
+ n = sum(24, 30);
+ print("Σ = %d\n", n);
+ exits(nil);
+}