blob: 7b97789f47abbe3ab0fb85dee0bdf3f57bbc7ccb (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
//Chapter-15, Example 15.1, Page 492
//=============================================================================
clc
clear
//INPUT DATA
x=12;//in decimal form
//CALCULATIONS
y=dec2oct(x);//converting to octal form
mprintf("Thus octal number is");
disp(y);
//=================================END OF PROGRAM=======================================================================================================
|