Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- cout << "Hello world!" << endl;
- int valores[4]; // arreglo de enteros, para 4 posiciones
- valores[0] = 20;
- valores[1] = 30;
- valores[2] = 40;
- valores[3] = 50;
- cout << valores <<endl;
- for(int i = 0; i<=3; i++){
- cout << valores[i] <<endl;
- }
- return 0;
- }
Add Comment
Please, Sign In to add comment