Skip to content

Instantly share code, notes, and snippets.

Created November 10, 2016 10:27
Show Gist options
  • Save anonymous/809f47ff7e81d42c4c1a477bf4375145 to your computer and use it in GitHub Desktop.
Save anonymous/809f47ff7e81d42c4c1a477bf4375145 to your computer and use it in GitHub Desktop.
Inversion created by семенгромаков - https://repl.it/EUEB/1
#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