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