summaryrefslogtreecommitdiff
path: root/911/CH1/EX1.7.a/ex_1_7_a.sce
blob: 2c105ea4fab025337ae097efd364b40338f32931 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// example 1.7(a) / /
// hexadecimal to binary conversion //
clc
// clears the screen //
clear
// clears already existing variables //
x= hex2dec ('17E')
//hexadecimal to decimal conversion //
a= dec2bin (x)
//decimal to binary conversion //
disp ('conversion of hexadecimal given no to its binary form is : ')
disp (a)
// answer in binary form//