blob: 71fd865dfa6449810438b304a21ca7594fcb2900 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
//example 2.33//
//conversion hexadecimal number to octal number//
clc
//clears the screen//
clear
//clears already existing variables//
x=hex2dec('A72E')
//hexadecimal to decimal conversion//
a=dec2oct(x)
//decimal to octal conversion//
disp('conversion of given hexadecimal no to its octal form results in :')
disp(a)
//answer in octal form//
|