Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.IO;
- using System.Linq;
- class Solution
- {
- static int[] foo(int[] array)
- {
- int[] xx = new int[array.Length];
- for(int i = 0; i < array.Length; i++)
- {
- array[i] *= 2;
- Console.WriteLine(array[i]);
- }
- return array;
- }
- static void Main(string[] args)
- {
- int[] array = new int[4] {73, 67, 38, 33 };
- foo(array);
- }
- }
Add Comment
Please, Sign In to add comment