summaryrefslogtreecommitdiff
path: root/1553/CH11/EX11.23/11Ex23.sce
blob: e5ff09a9b8554e0bf16d94c7b6fa4941e3056da2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//Chapter 9 Ex 23

clc;
close;
clear;
x=poly(0,'x');
tot=3000;
CP=x;
CPcarr=(tot-x);
gainh=20/100; lossc=10/100; gaintot=2/100;    //given
for x=1:2000
    if ((x/5)-((3000-x)/10))==60
        break;
            end
end
mprintf("The cost price of the horse is Rs.%d",x);