summaryrefslogtreecommitdiff
path: root/1241/CH2/EX2.29/exa2_29.sce
blob: c2e280b3272303461825c66f7edc156636889850 (plain)
1
2
3
4
5
6
7
8
//Example 2-29//
//octal to binary conversion//
x=oct2dec('3674')
//decimal equivalent of the octal number//
a=dec2bin(x)
//binary equivalent of the decimal number//
disp(a)
//answer in binary form//