You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Suppose you have X rupees and you can buy a candy for Y rupees. There is a amazing offer available, that if you return Z empty wrappers of the candy you will get another candy free. So can you figure out that totally how many candies you can enjoy with X rupees cumulatively.
Complete the function enjoyOffer() which takes 3 space-separated numbers i.e. X, Y & Z as input, and returns the total number of candies.*/