Vishal Dusane
How to multiply each number in array by 10 ?
By Vishal Dusane in .NET on Nov 24 2015
  • Ravi Patel
    Dec, 2015 30

    for(var i=0; i

    • 2
  • Vishal Dusane
    Nov, 2015 24

    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();}} }

    • 1


Most Popular Job Functions


MOST LIKED QUESTIONS