summaryrefslogtreecommitdiff
path: root/1088/CH1/EX1.8/Example8.sce
diff options
context:
space:
mode:
Diffstat (limited to '1088/CH1/EX1.8/Example8.sce')
-rwxr-xr-x1088/CH1/EX1.8/Example8.sce12
1 files changed, 12 insertions, 0 deletions
diff --git a/1088/CH1/EX1.8/Example8.sce b/1088/CH1/EX1.8/Example8.sce
new file mode 100755
index 000000000..a33c778d6
--- /dev/null
+++ b/1088/CH1/EX1.8/Example8.sce
@@ -0,0 +1,12 @@
+clear
+clc
+disp("Example 8: Write a code-sequence to find show primitive programming ")
+printf("\n*******************************************************************\n")
+disp("Answer : ")
+disp("The following programme takes an input from the user adds 2 to it and displays the result")
+disp("")
+halt("Ready???...Press Enter to continue")
+a=input("Enter any number : ")
+clc(1)
+printf("\n\nThe new result is %d",a+2)
+printf("\n*******************************************************************\n")