1 2 3 4 5 6 7 8
//chapter 4 Ex 35 clc; clear; close; n1=14; n2=18; amtEach=80; amtTotal=amtEach/(1/n1-1/n2); mprintf("The total amount was Rs.%d",amtTotal);