Ver Mensaje Individual
  #2 (permalink)  
Antiguo 05/04/2013, 08:51
CoolM
 
Fecha de Ingreso: junio-2010
Mensajes: 31
Antigüedad: 13 años, 10 meses
Puntos: 1
Respuesta: [Juego] Haz el programa lo más sencillo que puedas.

asi lo hice yo..

Código:
#include <iostream>
 
using namespace std;
 
int main()
{
    int i=1;
    do 
    {
        cout << i;
        cout << ", ";
            i += 4;
            cout << i;
            if(i == 23)
               {
                    cout << "." << endl;
                    break;
               }
            cout << ", ";
            i -= 2;
    } while (1); // Bucle infinito
    return 0;
}
__________________
Miguel0N