summaryrefslogtreecommitdiff
path: root/1553/CH4/EX4.20/4Ex20.sce
blob: d5149bc13dac2ce9c3589676c2fa684b62e4ad9f (plain)
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);