You are viewing a single comment's thread. Return to all comments →
Java Code:
public static int chocolateFeast(int n, int c, int m) { double w = n/c; double sum = w; while(w>=1.0) { w = w/m; sum = sum + w; } return (int)sum; }
Seems like cookies are disabled on this browser, please enable them to open this website
Chocolate Feast
You are viewing a single comment's thread. Return to all comments →
Java Code: