Tech
Forums
Jobs
Books
Events
Videos
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
4
Answers
to count number of 2's from 0 to 35
Shridhar Sharma
10y
910
1
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]
Post
Reset
Cancel
Answers (
4
)
Next Recommended Forum
C# application without main() as entry point
Generate Data Grid and Export Excel for Site Collection