blob: 69f563f7b9bdf511b8b9b7de669a253cac34efb3 (
plain)
1
2
3
4
5
6
7
8
9
|
//chapter 6 Ex 13
clc;
clear;
close;
n=35; newN=7; incExp=42; perheadExp=1;
originalAvg=(incExp+incExp*perheadExp)/(incExp-n);
originalExp=originalAvg*n;
mprintf("The original expenditure is Rs.%d",originalExp);
|