Programa:       Unidad2Ejercicio27.cpp
Fecha:          03/11/2006
Descripción:    Muestra el factorial de un número.
#include <iostream>
using namespace std;
void main()
        int i, n, f = 1;

        cout << "Introduzca un numero ";
        cin >> n;

        for(i = 1; i <=n; i++)
            f *= i;

        cout << "\nEl factorial es = " << f;


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.