blob: 8294d91352f5cb8f0cf88965add6b919c5623397 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
//Ex 6
clc;
clear;
close;
sp1=27.50;
sp2=25.75;
profit1=10;
cp=(100/(100+profit1))*sp1;
profit2=sp2-cp;
profitPercent=profit2/cp*100;
mprintf("The profit percent is %d percent",profitPercent);
|