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

clc;
clear;
close;
total=11; avg11=60; avg6first=58; avg6last=63;
num6=(((avg6first*6)+(avg6last*6))-avg11*total);
mprintf("The 6th number is %d",num6);