[Solved] Write a program which accepts two integers as a minimum and maximum limit and calculates total of how many 1s were their within the limit
I strongly advice looking into the math of your problem and come up with a clever algorithm that you then implement. The 1s are far from randomly distributed in a range of numbers that are count up 😉 However there is always the brute force approach. (This is just to show a possibility and one … Read more