diff options
Diffstat (limited to '1553/CH32/EX32.5/32Ex5.sce')
-rw-r--r-- | 1553/CH32/EX32.5/32Ex5.sce | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/1553/CH32/EX32.5/32Ex5.sce b/1553/CH32/EX32.5/32Ex5.sce new file mode 100644 index 000000000..486612b51 --- /dev/null +++ b/1553/CH32/EX32.5/32Ex5.sce @@ -0,0 +1,12 @@ +//Chapter 32 Ex 5
+
+clc;
+close;
+clear;
+//according to prob statement and forming the equation considering sum as x we get (x/2)+(2x/5)-(8x/9)=40 and solving equation
+for x=1:5000
+ if (x/2)+((2*x)/5)-((8*x)/9)==40
+ break;
+ end
+end
+mprintf("The amount of the bill is Rs %d",x);
|