Arrays Introduction

  • + 0 comments
      int arr[1000];
        int a ;
        cin >> a;
           for(int i = 0 ; i < a ; i++){
            int num;
            cin >> num;
            arr[i] = num;
           }
           
           for (int j = a ; j > 0; j--) {
           cout << arr[j-1] << " ";
           }