首页 > 代码库 > CC150 20.4

CC150 20.4

20.4 Write a method to count the number of 2s between 0 and n.

// What this mean?
// Given a n.
// for (int i = 0 -> n)
// {
//    result += numOf2In(i);
// }

// This is purely a math problem.


CC150 20.4