diff options
Diffstat (limited to '1553/CH11/EX11.23')
-rw-r--r-- | 1553/CH11/EX11.23/11Ex23.sce | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/1553/CH11/EX11.23/11Ex23.sce b/1553/CH11/EX11.23/11Ex23.sce new file mode 100644 index 000000000..e5ff09a9b --- /dev/null +++ b/1553/CH11/EX11.23/11Ex23.sce @@ -0,0 +1,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);
|