 
                                            Определить количество цифр в числе введенном с клавиатуры
 Visual C++
							
                                                        
                                                     
                        #include 
#include 
using namespace std;
int main()
{
    int a,k(0);
    cout << "a="; cin >> a;
    while (a > 0)
    {
        a /= 10;
        k++;
    }
    cout << "Otvet: " << k << endl;
    return 0;
}
Оцени ответ 
								
                             
		 
 
                        