AlexRaynor

3.4.3

Feb 13th, 2018
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.45 KB | None | 0 0
  1.   class program
  2.     {
  3.         static void Main(string[] args)
  4.         {
  5.             int[] numbers = { 7, 6, 5, 4, 3 };
  6.  
  7.             Reverse(numbers);
  8.  
  9.             Console.ReadLine();
  10.         }
  11.  
  12.  
  13.         static int[] Reverse(int[] numbers)
  14.         {
  15.             for (int i = numbers.Length - 1; i >= 0; i--)
  16.             {
  17.                 Console.Write(numbers[i] + " ");
  18.             }
  19.  
  20.             return numbers;
  21.  
  22.         }
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30.     }
Advertisement
Add Comment
Please, Sign In to add comment