Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cstdlib>
- using namespace std;
- void listarElemtos(int vNum[], int elemento);
- int main(){
- const int elemento=6;
- int vNum[elemento]={6, 8, 13, 18, 21, 22};
- listarElemtos(vNum, elemento);
- cout<<endl;
- system("pause");
- return 0;
- }
- void listarElemtos(int vNum[], int elemento){
- for (int i = 0; i < elemento; i++){
- cout<<vNum[i]<<endl;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment