2.A can lay railway track between two given stations in 16 days and B can do the same job in 12 days. With help of C, they did the job in 4 days only. Then, C alone can do the job in:?
A can do work in 16 days A's 1 day work is 1/16
B can do work in 12 days B's 1 day work in 1/12 |
|
A,B,C can do work in 4 days
1/4-(1/16+1/12) = 5/48
5/48*c=1
c=48/5
c=9(3/5)
Python Code:
print("A can do work in how many days")
a=int(input())
print("B can do work in how many days")
b=int(input())
print("a,b,c complete work in 4 days")
c=1/a+1/b
d=(1/4)-c
e=1/d
print("C alone can do it in")
print(e)
.
No comments:
Post a Comment