summaryrefslogtreecommitdiff
path: root/1553/CH11/EX11.26/11Ex26.sce
blob: a74567ac4e9980b680f12b2a45dc222f2c9637bf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
//Ex 26

clc;
clear;
close;
cp=100;
discount=25;
mPercent=50;
mp=cp+mPercent;
sp=((100-discount)*mp)/100;
gainPercent=(sp-100);
printf("The gain is %3.2f percent",gainPercent);