More Related Content
contoh Program C++ tentang fungsi for Bcsl 033 data and file structures lab s1-2 What's hot (20)
Dado un vector imprimir cuantas vocales tiene C - Pattern - Code - [Future Programming] Fcfs Cpu Scheduling With Gantt Chart IMPLEMENTATION OF AUTO KEY IN C++ vecotores programacion
- 1. #include <cstdlib>
#include <iostream>
using namespace std;
void vector(int ved[], int m);
int main()
{
int v1[6],col;
cout<< "ingrese columna:";
cin>>col;
vector(v1,col);
system("PAUSE");
return EXIT_SUCCESS;
}
void vector(int vector[], int m)
{
int i=0,nro=0;
while(i<m)
{
if((nro%2!=0) && (nro%5!=0))
{
vector[i]=nro;
nro++;
i++;
}
nro++;
}
i=0;
while(i<m)
{
cout<<"t["<<vector[i]<<"]";
i++;
}
}