Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <algorithm>
- using namespace std ;
- typedef long long ll ;
- void array (int arr[5] , int n) {
- for (int i = 0; i < n; i++) cout << arr[i] << " " ;
- }
- int main() {
- ios_base::sync_with_stdio(false) , cin.tie(nullptr) , cout.tie(nullptr) ;
- int n ; cin >> n ;
- int arr[n] ;
- for (int i = 0; i < n; i++) cin >> arr[i] ;
- array(arr , n) ;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment