Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <cstdlib>
- #include <iostream>
- using namespace std;
- int main(int argc, char *argv[])
- {
- int n, k;
- cout<<"Enter number";
- cin>>n;
- do{
- cout<< "Vvedi chislo\n";
- cin >> n;
- }
- while(n>0);
- while( n > 0)
- {
- k+= 1;
- n += n / 10;
- }
- cout<<"Êîëè÷åñòâî öèôð"<<k;
- system("PAUSE");
- return EXIT_SUCCESS;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement