X-Git-Url: http://git.joshuawise.com/jwcc.git/blobdiff_plain/7e3bbd6ac9896666e26d7a634242ee77b58db331..6a2c8011569143a42de91da37c3a591ff758dd97:/examples/break.c diff --git a/examples/break.c b/examples/break.c new file mode 100644 index 0000000..61b452e --- /dev/null +++ b/examples/break.c @@ -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); +}