Advertisement
vsonia2004

Nrcifre

Nov 18th, 2019
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.15 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3. int main()
  4. {
  5. int x,nrc;
  6. cin>>x;
  7. nrc=0;
  8. do
  9. {
  10. nrc++;
  11. x=x-x/10;
  12. }
  13. while(x!=0)
  14. cout<<nrc;
  15. return 0;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement