1 2 3 4 5 6 7 8 9
//chapter 6 Ex 4 clc; clear; close; avg=27; nums=4; n=((avg*nums)-(1+2+3+4))/4; //addition of 4 consecutive numbers mprintf("The largest number is %d",n+6);