Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- setlocale(LC_ALL, "Rus");
- int N;
- int i = 1;
- cout << "Введите число "<<endl ;
- cin >> N;
- while (N = N / 10)
- {
- i = i + 1;
- }
- cout << "Количество цифр в числе = " << i << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment