blob: d8ad682852de6686be23af14f6d09a744b53826d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
// example 1.6(b) / /
clc
//clears the screen //
clear
//clears already existing variables //
// binary to octal conversion //
y= bin2dec ('1110100')
//binary to decimal conversion//
a= dec2oct (y)
//decimal to octal conversion //
disp ('octal representation of given no is : ' )
disp (a)
// answer in octal form//
|