Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void Reverse(int[] a)
- {
- for (int i = 0; i < a.Length / 2; i++)
- {
- int t = a[i];
- a[i] = a[a.Length - i];
- a[a.Length - i] = t;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement