loading...

re: Daily Challenge #64- Drying Potatoes VIEW POST

TOP OF THREAD FULL DISCUSSION
re: let potatoes = (p0, w0, p1) => parseInt(w0 * (100 - p0) / (100 - p1)) console.log(potatoes(99, 100, 98)); console.log(potatoes(50, 200, 25));
 

in C#

int potatoes(int p0, int w0, int p1) => w0 * (100 - p0) / (100 - p1);
Console.WriteLine(potatoes(50, 200, 25));
Code of Conduct Report abuse