From db464f35f5a10b58d9ed1085e0b462689adee583 Mon Sep 17 00:00:00 2001 From: Siddhesh Wani Date: Mon, 25 May 2015 14:46:31 +0530 Subject: Original Version --- .../test018_NestedWhile/scilabcode/mainfunction.sci | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 tests/unit_tests/test018_NestedWhile/scilabcode/mainfunction.sci (limited to 'tests/unit_tests/test018_NestedWhile/scilabcode/mainfunction.sci') diff --git a/tests/unit_tests/test018_NestedWhile/scilabcode/mainfunction.sci b/tests/unit_tests/test018_NestedWhile/scilabcode/mainfunction.sci new file mode 100644 index 0000000..8142e6f --- /dev/null +++ b/tests/unit_tests/test018_NestedWhile/scilabcode/mainfunction.sci @@ -0,0 +1,19 @@ +//SCI2C: DEFAULT_PRECISION= DOUBLE + +function mainfunction() + +a = 0; +b = 5; +while (a+b < 36) + disp('a'); + disp(a); + a = a + b; + while (b < 9) + disp('b'); + disp(b); + b = b + 1; + a = a + 1; + end +end +endfunction + -- cgit