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

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