This Question has been **Answered**

Featured Replies

- 1
The Code below shows how to iterate Strings. With Efforts you should be able to get what you want God bless you! #include <string> #include <iostream> int main() { int i=0; std::string s = "UJehova uyaphile Yesu Mwema!"; for(i; i<s.length(); i++) { std::cout<<s[i]<<std::endl; } return 0; } Read More

- 1
Taking into account that: If a number N ends in zero then the remainder of N integer divided by ten is zero You could count the number of zeroes inside a number N with the following algorithm: Initialize Counter to zero While N is greather than zero IF N ends … Read More

- 1
> You could count the number of zeroes inside a number N with the following algorithm And if the number *begins* with zeroes? What if the number exceeds the range of your numeric type? The best approach to handle input as it's typed is to work with it as a … Read More

This question has already been answered. Start a new discussion instead.

Recommended Articles