blob: 77171527ca7ce1fe8065f5fb00083c991c7e50cf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
//Ex 20
clc;
clear;
close;
profitPercent1=25;
profitPercent2=20;
totalProfitPercent=65;
profit3=((100+totalProfitPercent)/100)/((100+profitPercent1)/100*(100+profitPercent2)/100);
profitPercent3=(profit3*100-100);
mprintf("The percentage profit earned by 3rd seller is %3.2f percent",profitPercent3);
|