summaryrefslogtreecommitdiff
path: root/1088/CH1/EX1.8/Example8.sce
blob: a33c778d6cb3533c4bee555acaeac334ea3594c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
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")