Advertisement
ajreuri23

שאלה 14

Dec 3rd, 2016
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. static void Main(string[] args)
  2. {
  3. int[] a = new int[20];
  4. int[] b = new int[20];
  5. int i, Placement = 19, j, x, f;
  6. for (i = 0; i < a.Length; i++)
  7. {
  8. a[i] = int.Parse(Console.ReadLine());
  9. }
  10. for (j = 0; j < a.Length; j++)
  11. {
  12. b[j] = a[Placement];
  13. Placement--;
  14. }
  15. for (x = 0; x < a.Length; x++)
  16. {
  17. a[x] = b[x];
  18. }
  19. for (f = 0; f < a.Length; f++)
  20. Console.Write(a[f] + " ");
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement