Fandom

Scratchpad

PLE:Unidad3Ejercicio15

215,870pages on
this wiki
Add New Page
Discuss this page0 Share

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.

/*
Programa:       Unidad2Ejercicio15.cpp
Descripción:    Suma pares desde 1...50
*/
#include <iostream>
using namespace std;
void main ()
{
        int i, suma = 0;

        for(i = 2; i <= 50; i+=2)
                suma += i;

        cout << "La suma de los pares 1...50 = " << suma;

        cin.ignore();
        cin.get();
}

Also on Fandom

Random wikia