summaryrefslogtreecommitdiff
path: root/1553/CH4/EX4.23/4Ex23.sce
diff options
context:
space:
mode:
Diffstat (limited to '1553/CH4/EX4.23/4Ex23.sce')
-rw-r--r--1553/CH4/EX4.23/4Ex23.sce9
1 files changed, 9 insertions, 0 deletions
diff --git a/1553/CH4/EX4.23/4Ex23.sce b/1553/CH4/EX4.23/4Ex23.sce
new file mode 100644
index 000000000..9c29e6bf5
--- /dev/null
+++ b/1553/CH4/EX4.23/4Ex23.sce
@@ -0,0 +1,9 @@
+//chapter 4 Ex 23
+
+clc;
+clear;
+close;
+b_taken=6; b_poured=4; //number of bottles taken and poured respectively
+oil_filled=4/5; oilfill_poured=3/4;
+numBottles=(b_taken-b_poured)/(oil_filled-oilfill_poured);
+mprintf("The required number of bottles are %0.0f",numBottles);