Question: help me code this one with C language pls 4. Number of Chocolates by Jemar Jude Maranga The number of chocolates that John is losing
4. Number of Chocolates by Jemar Jude Maranga The number of chocolates that John is losing per day is x. Whereas, the number of chocolates that Joey is gaining per day is y. Currently, the number of chocolates that John and Joey contains is a and b respectively. You are required to calculate the number of chocolates that Joey has when John does not contain any chocolates. Note: It is guaranteed that John always loses all the chocolates (a % x = 0) Input Format A single line containing the values of a, b, x, and y respectively. Input Sample 100 10 5 100 Output Format A single integer denoting the number of chocolates that Joey has. Output Sample 2010
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
