Count number of occurrences of a digit with while/do while without using array in c++

Recommended Answers

All 2 Replies

Seems like a homework question for you. What code do you have so far and where are your stuck? We’ll try to help.

One would have to make assumptions on this assignment such as are the digits in some integer and we assume base 10. Assumptions mean solutions could be incorrect. Show your work and don't leave out details such as the digits are in some integer and what base number system is to be used.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.