Garey

Едномерен Масив - 5т.

Nov 3rd, 2017
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.23 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main() {
  6.    
  7.     int a[4];
  8.  
  9.     for(int i = 0; i < 4; i++) {
  10.         cout << "Enter a[" << i << "]=";
  11.         cin >> a[i];
  12.     }
  13.  
  14.     for(int i = 0; i < 4; i++) {
  15.         cout << a[i];
  16.     }
  17.  
  18.     return 0;
  19. }
Add Comment
Please, Sign In to add comment