blob: 6d89c95901709f6e604d83d87b65d818bf27d28a (
plain)
1
2
3
4
5
6
7
8
|
//chapter 6 Ex 8
clc;
clear;
close;
total=25; avg25=18; avg12first=14; avg12last=17;
num13=(avg25*total)-((avg12first*12)+(avg12last*12));
mprintf("The 13th number is %d",num13);
|