summaryrefslogtreecommitdiff
path: root/2825/CH19/EX19.15/Ex19_15.sce
blob: e041c8e7784409c4a1a0d9206bc4da1ebc3f3412 (plain)
1
2
3
4
5
6
7
8
//Ex19_15 Pg-963
clc

oct='34' //octal input
dec=oct2dec(oct) //decimal output
bin=dec2bin(dec) //binary output
disp("The binary equivalent of octal 34 is")
disp(bin)