Problem 44501. Please check if calorie intake is less than 300 kcal.
I like eating some puddings and some chocolate cookies around 3 o'clock. However, I care about calorie intake. Please check whether total calorie intake is less than 300 kcal.
The calorie of a pudding is 108 kcal. The calorie of a chocolate cookie is 48 kcal.
For example, in case of pudding = 1, cookie = 2, 1 is returned because the total caloric intake is 204 kcal and less than 300 kcal.
Solution Stats
Problem Comments
-
1 Comment
chinatsu asaka
on 2 Feb 2018
fun!!!!
Solution Comments
Show commentsProblem Recent Solvers57
Suggested Problems
-
Create a square matrix of multiples
482 Solvers
-
find the maximum element of the matrix
511 Solvers
-
458 Solvers
-
07 - Common functions and indexing 4
412 Solvers
-
Find the index of the largest value in any vector X=[4,3,4,5,9,12,0,4.....5]
382 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!