219,203pages on
this wiki
Add New Page
Discuss this page0 Share
Programa:       Unidad2Ejercicio17.cpp
Descripción:    Calcula el producto de los 20 primeros impares
#include <iostream>
using namespace std;
void main ()
        unsigned long int i, producto = 1, numImpares;

        for(i = 1, numImpares = 1; numImpares <= 20; i+=2, numImpares++)
                cout << numImpares << ',' << i << endl;
                producto *= i;

        cout << "El producto es = " << producto;


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.

Also on Fandom

Random wikia