Advertisement
Guest User

Untitled

a guest
Nov 24th, 2014
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. #include <cstdlib>
  2. #include <iostream>
  3.  
  4. using namespace std;
  5.  
  6. int main(int argc, char *argv[])
  7. {
  8. int n, k;
  9. cout<<"Enter number";
  10. cin>>n;
  11.  
  12. do{
  13. cout<< "Vvedi chislo\n";
  14. cin >> n;
  15. }
  16. while(n>0);
  17. while( n > 0)
  18. {
  19. k+= 1;
  20. n += n / 10;
  21. }
  22.  
  23. cout<<"Êîëè÷åñòâî öèôð"<<k;
  24.  
  25.  
  26. system("PAUSE");
  27. return EXIT_SUCCESS;
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement