blob: af5a4f0b61471c915756cdd5ea11925c7479c994 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
//Ex 28
clc;
clear;
close;
cp=100;
discount=5;
gainPercent=33;
sp=cp+gainPercent;
mp=sp/((100-discount)/100);
mPercent=mp-cp;
printf("The marked price is %d percent above CP",mPercent);
|