summaryrefslogtreecommitdiff
path: root/1553/CH6/EX6.7/6Ex7.sce
blob: c5806e526dadf7286fe8cff5a0599f239a92c561 (plain)
1
2
3
4
5
6
7
8
9
10
//chapter 6 Ex 7

clc;
clear;
close;
num=3; avg=44; 
//let third number be x
num3=(avg*num)/(1+3+3/2);
num2=3*num3;
mprintf("The largest number is %d",num2);