summaryrefslogtreecommitdiff
path: root/462/CH2/EX2.21/ex_2_21.sce
diff options
context:
space:
mode:
Diffstat (limited to '462/CH2/EX2.21/ex_2_21.sce')
-rwxr-xr-x462/CH2/EX2.21/ex_2_21.sce11
1 files changed, 11 insertions, 0 deletions
diff --git a/462/CH2/EX2.21/ex_2_21.sce b/462/CH2/EX2.21/ex_2_21.sce
new file mode 100755
index 000000000..8d639aa8d
--- /dev/null
+++ b/462/CH2/EX2.21/ex_2_21.sce
@@ -0,0 +1,11 @@
+//example 2.21//
+clc
+//clears the screen//
+clear
+//clears already existing variables//
+x=247
+//decimal to octal conversion//
+a=dec2oct(x)
+disp('the octal conversion of given no is:')
+disp(a)
+//answer in octal form// \ No newline at end of file