Guest User

Untitled

a guest
Aug 14th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.IO;
  4. using System.Linq;
  5.  
  6. class Solution
  7. {
  8. static int[] foo(int[] array)
  9. {
  10. int[] xx = new int[array.Length];
  11.  
  12. for(int i = 0; i < array.Length; i++)
  13. {
  14. array[i] *= 2;
  15. Console.WriteLine(array[i]);
  16. }
  17.  
  18. return array;
  19. }
  20.  
  21. static void Main(string[] args)
  22. {
  23.  
  24. int[] array = new int[4] {73, 67, 38, 33 };
  25.  
  26. foo(array);
  27.  
  28. }
  29. }
Add Comment
Please, Sign In to add comment