martes, 15 de octubre de 2013

vector 3

#include <cstdlib>
#include <iostream>

using namespace std;

int main(int argc, char *argv[])
{
    int vec[20],l;
    for(l=0;l<=19;l++)
    { cout<<"Dame un numero";
    cin>>vec[l];
    }
    if(vec[l]>35)
    { cout<<"Mayor de edad";
    cout<<vec[l];
    }
    system("PAUSE");
    return EXIT_SUCCESS;
}

No hay comentarios:

Publicar un comentario