summaryrefslogtreecommitdiff
path: root/1088/CH1/EX1.8
diff options
context:
space:
mode:
Diffstat (limited to '1088/CH1/EX1.8')
-rwxr-xr-x1088/CH1/EX1.8/Example8.sce12
-rwxr-xr-x1088/CH1/EX1.8/Result8.pdf43
-rwxr-xr-x1088/CH1/EX1.8/Result8.txt43
3 files changed, 98 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")
diff --git a/1088/CH1/EX1.8/Result8.pdf b/1088/CH1/EX1.8/Result8.pdf
new file mode 100755
index 000000000..4a390247b
--- /dev/null
+++ b/1088/CH1/EX1.8/Result8.pdf
@@ -0,0 +1,43 @@
+ ans =
+
+ 1.
+
+-->exec('Example8.sci',0)
+Current date is 29-May-2013
+
+Welcome to the Textbook Companionship Project 2013
++-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
+
+ Book Title : UNIX CONCEPTS AND APPLICATIONS
+
+ Book Edition : 4
+
+ Book Author : Sumitabha Das
++-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
+
+ Code Author : Pranav Bhat T
++-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
+
+ Chapter Number : 1
+
+ Chapter Title : GETTING STARTED
++-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
+
+ Example 8: Write a code-sequence to find show primitive programming
+
+*******************************************************************
+
+ Answer :
+
+ The following programme takes an input from the user adds 2 to it and displays the result
+
+
+Ready???...Press Enter to continue a =
+
+ 8.
+
+
+The new result is 10
+*******************************************************************
+
+-->diary('Result8.txt','close')
diff --git a/1088/CH1/EX1.8/Result8.txt b/1088/CH1/EX1.8/Result8.txt
new file mode 100755
index 000000000..4a390247b
--- /dev/null
+++ b/1088/CH1/EX1.8/Result8.txt
@@ -0,0 +1,43 @@
+ ans =
+
+ 1.
+
+-->exec('Example8.sci',0)
+Current date is 29-May-2013
+
+Welcome to the Textbook Companionship Project 2013
++-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
+
+ Book Title : UNIX CONCEPTS AND APPLICATIONS
+
+ Book Edition : 4
+
+ Book Author : Sumitabha Das
++-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
+
+ Code Author : Pranav Bhat T
++-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
+
+ Chapter Number : 1
+
+ Chapter Title : GETTING STARTED
++-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
+
+ Example 8: Write a code-sequence to find show primitive programming
+
+*******************************************************************
+
+ Answer :
+
+ The following programme takes an input from the user adds 2 to it and displays the result
+
+
+Ready???...Press Enter to continue a =
+
+ 8.
+
+
+The new result is 10
+*******************************************************************
+
+-->diary('Result8.txt','close')