Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System.Linq;
- public class Program
- {
- public static int[] MultiplyByLength(int[] arr)
- {
- var multiplier = arr.Length;
- return arr.Select(x => x * multiplier).ToArray();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment