Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
4
Reply
to count number of 2's from 0 to 35
Shridhar Sharma
Apr 7 2014 7:04 AM
897
Reply
Write a method to count the number of 2's between 0 and n.
EXAMPLE:
input: 35
output: 14 [list of 2's: 2, 12, 20, 21, 22, 23, 24, 25, 26, 27,28, 29, 32]
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
4
)
Next Recommended Forum
C# application without main() as entry point
Generate Data Grid and Export Excel for Site Collection