quarta-feira, 6 de novembro de 2019

vetor 1 basico

#include <iostream>
using namespace std;

int main() {  

    int vetor[5], i;
   
    vetor[0]=10;
    vetor[1]=20;
    vetor[2]=30;
    vetor[3]=40;
    vetor[4]=50;
   
    for(i=0;i<5;i++)
    {
        cout << vetor[i] <<endl;
    }

   
    return 0;

}