summaryrefslogtreecommitdiff
path: root/1553/CH11/EX11.18/11Ex18.sce
blob: 603162d4858bb055cbec0fbbf37735c9d8992011 (plain)
1
2
3
4
5
6
7
8
9
10
//Ex 18

clc;
clear;
close;
lossPercent=20;
gainPercent=5;
spIncreased=100;
cpnew=spIncreased/((100+gainPercent)-(100-lossPercent))*100;
printf("The new cost price of article is Rs. %d",cpnew);