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);