Given a container that has X liters of milk. Y liters of milk is drawn out and replaced with Y liters of water. This operation is done Z times. The task is to find out the quantity of milk left in the container.
Input: X = 10 liters, Y = 2 liters, Z = 2 times Output: 6.4 liters Input: X = 25 liters, Y = 6 liters, Z = 3 times Output: 10.97 liters
Below is the required implementation:
- Find amount to be added to achieve target ratio in a given mixture
- Next greater Number than N with the same quantity of digits A and B
- Smallest length string with repeated replacement of two distinct adjacent
- Program to find sum of 1 + x/2! + x^2/3! +...+x^n/(n+1)!
- Program to Find the value of cos(nΘ)
- Program to find sum of the given sequence
- Program to find LCM of 2 numbers without using GCD
- Program to find greater value between a^n and b^n
- Program to find the value of sin(nΘ)
- Program to find the sum of a Series 1/1! + 2/2! + 3/3! + 4/4! +.......+ n/n!
- Program to find the value of tan(nΘ)
- Program to find Sum of the series 1*3 + 3*5 + ....
- Program to find HCF iteratively
- Program to find Sum of a Series a^1/1! + a^2/2! + a^3/3! + a^4/4! +…….+ a^n/n!
- Program to find the sum of the series (1/a + 2/a^2 + 3/a^3 + ... + n/a^n)
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to firstname.lastname@example.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.