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

help me code this one with C language pls help me code this one with C language pls 4. Number of

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!