aboutsummaryrefslogtreecommitdiffstats
path: root/test_deliverable/testcases/test_CONTINUE.c
diff options
context:
space:
mode:
Diffstat (limited to 'test_deliverable/testcases/test_CONTINUE.c')
-rw-r--r--test_deliverable/testcases/test_CONTINUE.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/test_deliverable/testcases/test_CONTINUE.c b/test_deliverable/testcases/test_CONTINUE.c
new file mode 100644
index 0000000..e907908
--- /dev/null
+++ b/test_deliverable/testcases/test_CONTINUE.c
@@ -0,0 +1,18 @@
+int cont(int a, int b)
+{
+ int c = 0;
+ while(a < b)
+ {
+ ++a;
+ if(a < b/2)
+ {
+ continue;
+ }
+ else
+ {
+ c += 2;
+ }
+ }
+
+ return c;
+}