summaryrefslogtreecommitdiff
path: root/911/CH1/EX1.8.b/ex_1_8_b.sce
blob: 562d090cfc5559a987d3565266c39a2efb8aa8a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// example 1.8(b)//
//conversion octal number to hexadecimal number //
clc
//clears the screen //
clear
// clears already existing variables //
x= oct2dec ('762')
//octal to decimal conversion //
a= dec2hex (x)
//decimal to hexadecimal conversion //
disp ('conversion of given octal no to its hexadecimal form results in :' )
disp (a)
//answer in hexadecimal form//