Polnochniy

Untitled

Nov 6th, 2019
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3. int main()
  4. {
  5. setlocale(LC_ALL, "Rus");
  6. int N;
  7. int i = 1;
  8. cout << "Введите число "<<endl ;
  9. cin >> N;
  10. while (N = N / 10)
  11. {
  12. i = i + 1;
  13. }
  14. cout << "Количество цифр в числе = " << i << endl;
  15. return 0;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment