Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Blog
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
Please
log in
to post a comment.
FromBase64String
Access Modifiers
Konsol Kelebek Deseni
Comp4.1
Kumaran - Regex IP Match
Hello World Sub
Fórum Parallel Threads ( Without Fun )
Operator Overloading + Operator
conter 1 in binnary number
Swiss Infotech Tutorial
stackse - search stackoverflow differently
Please log in to post a comment.