Advertisement
TimmyTurner

Untitled

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