1 2 3 4 5 6 7 8
//chapter 4 Ex 20 clc; clear; close; total=8600; s=5;d=4;n=2; amtD=total/(5*s+4*d+n); printf("The share of each daughter is Rs. %d",d*amtD);