We will make puddings with eggs, milk and sugar. To make one pudding, we need one egg, 140(cc) of milk, 15 (g) of sugar. Now We have x eggs, y (cc) of milk, z (g) of sugar. How many puddings can we make?
eg. When we have 3 eggs, 300cc milk, 300g sugar...
input : x = 3, y = 300, z = 300
output : Puddings= 2
Solution Stats
Problem Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers55
Suggested Problems
-
The Hitchhiker's Guide to MATLAB
3408 Solvers
-
Project Euler: Problem 5, Smallest multiple
1651 Solvers
-
Back to basics 12 - Input Arguments
622 Solvers
-
We love vectorized solutions. Problem 1 : remove the row average.
884 Solvers
-
363 Solvers
More from this Author9
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!