2
Reply

How to multiply each number in array by 10 ?

Vsd Vsd

Vsd Vsd

8y
578
0
Reply

    for(var i=0; i

    namespace ConsoleApplication6 {class Program{static void Main(string[] args){int[] mynumber = { 1,2,3,4,5,6,7,8,9,10};mynumber = mynumber.Select(b => b * 10).ToArray();// mynumber =(from obj in mynumber select obj*10 ).ToArray();for (int i = 0; i < 10; i++){Console.Write(mynumber[i]);Console.WriteLine();}Console.ReadKey();}} }