Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int iterative(int N)
- {
- int cnt = 0; //counter
- while (N != 0) {
- cnt++; // incrementation
- N /= 10; // N = N / 10;
- }
- return cnt;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement