Programa:       Unidad2Ejercicio19.cpp
Fecha:          28/10/2006
Descripción:    Muestra el número de dígitos de un número
#include <iostream>
using namespace std;
void main()
        int n, d = 0;
        cout << endl << "Introduzca un numero ";
        cin >> n;

        while(n != 0)
                n = n / 10;

        cout << "El número de digitos es = " << d;


Ad blocker interference detected!

Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.