Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
multiplyarr
//Rextester.Program.Main is the entry point for your code. Don't change it. //Compiler version 4.0.30319.17929 for Microsoft (R) .NET Framework 4.5 using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; namespace Rextester { public class Program { public static int [] Modify(int [] arr1) { int [] arr2 = new int[arr1.Length]; int j = 0; for(int i = 0;i<arr1.Length;i++) { arr2[j]=arr1[i]*3; j++; } return arr2; } public static void Main(string[] args) { int [] arr1 = new int [] {2,3,4,6,1}; int [] arr2 = Modify(arr1); for(int i =0; i<arr2.Length;i++) { Console.Write(arr2[i]); Console.Write(" "); } } } }
run
|
edit
|
history
|
help
0
Ruben
string test
basics of generics
Program to print pyramid using numbers
text
scasdxcd
Dependencia de datos
z x xc x
asdfrgthyjuhtgrfed
Math 10.96