summaryrefslogtreecommitdiff
path: root/2492/CH8/EX8.4/ex8_4.sce
blob: a5381259bf6e9eebba39b1eb29e9f7a3de2af3ee (plain)
1
2
3
4
5
6
7
8
9
10
// Exa 8.4
format('v',9)
clc;
clear;
close;
// Given data
str= 450;// given number in decimal to convert into octal
str_in_oct= dec2oct(str);// octal equivalent
disp(str_in_oct,"The octal equivalent of 450 is : ")