summaryrefslogtreecommitdiff
path: root/911/CH1/EX1.10.b/ex_1_10_b.sce
blob: f60b44e756d6b4f33cc0d1c0da7e057707b7042e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//example 1.10(b)//
clc
//clears the screen//
clear
//clears already existing variables//
a=5264;
//given 7's compliment//
b=7777-5264;
//no in octal form//
d=oct2dec('2513');
//decimal conversion//
disp('hexadecimal conversion of given 7''s compliment is:')
e=dec2hex(d);
disp(e);