Lucian_Adrian

Untitled

Aug 22nd, 2021
40
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3. int main()
  4. {
  5. int a;
  6. cin >> a;
  7. if (a/100!=0)
  8. cout << 3;
  9. else if (a/100==0 && a/10!=0)
  10. cout << 2;
  11. else
  12. cout <<1;
  13. return 0;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment