]> Joshua Wise's Git repositories - jwcc.git/blobdiff - examples/break.c
Add the break.c example
[jwcc.git] / examples / break.c
diff --git a/examples/break.c b/examples/break.c
new file mode 100644 (file)
index 0000000..61b452e
--- /dev/null
@@ -0,0 +1,18 @@
+int dummy()
+{
+  return 0;
+}
+
+int test(int in1) {
+  int result = 0;
+  while (in1 > 0)
+  {
+    in1 = in1 - 1;
+    result = result + 1;
+  }
+  return result;
+}
+
+int main() {
+  return test(5);
+}
This page took 0.02249 seconds and 4 git commands to generate.