Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <cmath>
- #include <iostream>
- using namespace std;
- int main ()
- {
- int input, digits;
- cin >> input;
- digits = floor(log10(input)) + 1;
- cout << "3adad el 5anat: " << digits;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement