Main.cs
using System; //добавить ссылку using System.Linq; class Program { public static int Main() { string[] ara1 = new string[] { "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10" }; int[] ara2 = ara1.Select(val => Int32.Parse(val)).ToArray(); foreach(var i in ara2) { Console.Write("{0} ", i*10); } Console.WriteLine(); Console.ReadKey(); return 0; } }
using System; //добавить ссылку using System.Linq; class Program { public static int Main() { string[] ara1 = new string[] { "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10" }; int[] ara2 = ara1.Select(val => Int32.Parse(val)).ToArray(); foreach(var i in ara2) { Console.Write("{0} ", i*10); } Console.WriteLine(); Console.ReadKey(); return 0; } }
0 10 20 30 40 50 60 70 80 90 100