about | help | code help+videos | done | prefs |
FindingThe4's in numbers. Write the method that accepts a positive integer and returns the count of the number of occurrences of "4". Be sure to check the integer being positive as if it is negative, return zero fours. Example: 1234567 would return 1. findTheFours2(1234567) → 1 findTheFours2(9544567) → 2 findTheFours2(12349876) → 1 ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 110
Copyright Nick Parlante 2017 - privacy