summaryrefslogtreecommitdiff
path: root/659/CH2/EX2.3/exm2_3.sce
diff options
context:
space:
mode:
Diffstat (limited to '659/CH2/EX2.3/exm2_3.sce')
-rwxr-xr-x659/CH2/EX2.3/exm2_3.sce9
1 files changed, 9 insertions, 0 deletions
diff --git a/659/CH2/EX2.3/exm2_3.sce b/659/CH2/EX2.3/exm2_3.sce
new file mode 100755
index 000000000..bac1d9631
--- /dev/null
+++ b/659/CH2/EX2.3/exm2_3.sce
@@ -0,0 +1,9 @@
+// Example 2.3
+// The program illustrate the use of scanf() function
+disp("Enter an interger number:");
+number=scanf("%d"); //Read from keyboard
+if(number<100) then
+ disp("Your number is smaller than 100");
+else
+ disp("Your number contain more than two digits");
+end \ No newline at end of file