Advertisement
Guest User

Multi-Chaves

a guest
Sep 11th, 2013
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.42 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. int chaves[] = {0};
  4.  
  5. int main() {
  6.     chaves[0] = 10;
  7.     chaves[1] = 15;
  8.     chaves[2] = 20;
  9.     chaves[3] = 25;
  10.  
  11.     for(int i=0; i!= 4; i++) {
  12.         std::cout << chaves[i] << std::endl;
  13.     }
  14.  
  15.     chaves[0] = 10;
  16.     chaves[1] = 0;
  17.     chaves[2] = 20;
  18.     chaves[3] = 25;
  19.     chaves[4] = 40;
  20.     chaves[5] = 35;
  21.  
  22.     for(int i=0; i!= 6; i++) {
  23.         std::cout << chaves[i] << std::endl;
  24.     }
  25.  
  26.     system("pause");
  27.     return 1;
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement