summaryrefslogtreecommitdiff
path: root/1553/CH11/EX11.27/11Ex27.sce
blob: 9ad0552292a14991ab4746cb6ca85d54254916a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
//Ex 27

clc;
clear;
close;
discount=1;
cp_40=36;
sp_40=40;
sp_40=(100-discount)/100*sp_40;
profitPercent=(sp_40-cp_40)/cp_40*100;
printf("The profit is %d percent",profitPercent);