Guest User

Untitled

a guest
Dec 19th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7. cout << "Hello world!" << endl;
  8. int valores[4]; // arreglo de enteros, para 4 posiciones
  9. valores[0] = 20;
  10. valores[1] = 30;
  11. valores[2] = 40;
  12. valores[3] = 50;
  13. cout << valores <<endl;
  14.  
  15. for(int i = 0; i<=3; i++){
  16. cout << valores[i] <<endl;
  17. }
  18. return 0;
  19. }
Add Comment
Please, Sign In to add comment