blob: 2692bfe7b24ae73a870491b7c5fbd426ad1ed876 (
plain)
1
2
3
4
5
6
7
8
9
|
//chapter 10 Ex 18
clc;
clear;
close;
com=5/100; amtupto5=10000; morethan5=4/100; remits=31100;
amtCom=com*amtupto5;
total=(remits+amtCom-(amtupto5*morethan5))/(1-morethan5);
mprintf("The total sales are Rs.%d",total);
|