-
-
Save nimblemo/7817497df06e0b09395f930c75b211d6 to your computer and use it in GitHub Desktop.
Inversion created by семенгромаков - https://repl.it/EUEB/1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
using namespace std; | |
int main() { | |
int arr[] = {21,22,43,53,65,32,65,223,65,62,53,75,23,63,23,76,24}; | |
int size = sizeof(arr)/sizeof(arr[0]); | |
int c; | |
for ( int i = 0; i < size/2; i ++ ) { | |
c = arr[i]; | |
arr[i] = arr[size-1-i]; | |
arr[size-1-i] = c; | |
} | |
for(int i=0;i != size; i++) { | |
std::cout << arr[i] << ","; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment