summaryrefslogtreecommitdiff
path: root/260/CH1/EX1.9/1_9.sce
diff options
context:
space:
mode:
Diffstat (limited to '260/CH1/EX1.9/1_9.sce')
-rw-r--r--260/CH1/EX1.9/1_9.sce14
1 files changed, 14 insertions, 0 deletions
diff --git a/260/CH1/EX1.9/1_9.sce b/260/CH1/EX1.9/1_9.sce
new file mode 100644
index 000000000..469ce0af5
--- /dev/null
+++ b/260/CH1/EX1.9/1_9.sce
@@ -0,0 +1,14 @@
+//Eg-1.9
+//pg-22
+
+clear
+clc
+
+a=input("enter any number")
+if a<=0 then
+ disp("logarithm cannot be computed")
+exit(0);
+end
+ p=log(a);
+ disp("logarithm of given number is ")
+ disp(p)