Problem 2132. Finger Counting
Just counting numbers using fingers.
First all my ten fingers are closed. I will say 1 and open my one finger. Likewise for 6, all my right hand fingers are open and one of the left hand finger is open. So for 10, all 10 fingers are open. Now for 11, I will close all my right hand fingers(because all are open for 10) and open 1 finger in right hand. So for 11, 6 fingers are open. Likewise for 16, 6 are open. For 20, 10 are open. Likewise for 25, 10 are open.
Now number is the input for you and the number of open fingers is the output expected from you
Solution Stats
Problem Comments
Solution Comments
Show commentsProblem Recent Solvers37
Suggested Problems
-
Return the largest number that is adjacent to a zero
5319 Solvers
-
Project Euler: Problem 6, Natural numbers, squares and sums.
2115 Solvers
-
Find the sum of the elements in the "second" diagonal
1144 Solvers
-
Back to basics 12 - Input Arguments
594 Solvers
-
286 Solvers
More from this Author3
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!