lunes, 14 de octubre de 2013

Vector 1 (lenguaje c)

#include <cstdlib>
#include <iostream>

using namespace std;
int vec[15],k,l;
int main(int argc, char *argv[])
{
    for(k=0;k<=14;k++)
    {cout<<"Dame un numero";
    cin>>vec[k];
    }
    for(l=0;l<=14;l++)
    { cout<<vec[l];
    }
    system("PAUSE");
    return EXIT_SUCCESS;
}

No hay comentarios:

Publicar un comentario