summaryrefslogtreecommitdiff
path: root/1553/CH16/EX16.1/16Ex1.sce
diff options
context:
space:
mode:
Diffstat (limited to '1553/CH16/EX16.1/16Ex1.sce')
-rw-r--r--1553/CH16/EX16.1/16Ex1.sce8
1 files changed, 8 insertions, 0 deletions
diff --git a/1553/CH16/EX16.1/16Ex1.sce b/1553/CH16/EX16.1/16Ex1.sce
new file mode 100644
index 000000000..77ecc5c1d
--- /dev/null
+++ b/1553/CH16/EX16.1/16Ex1.sce
@@ -0,0 +1,8 @@
+//chapter 16 Ex 1
+clc;
+clear;
+close;
+t1=36; t2=45; //time taken by A and B to fill tank individually
+A1hour=1/t1; B1hour=1/t2; //part filled by A and B in 1 hour each
+AB1hour=A1hour+B1hour; //part filled by both in 1 hour
+mprintf("Thus the time taken by both pipes together to fill the tank is %d hours",1/AB1hour);