Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Adding two arrays and print it out..the crude approach
//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 void Main(string[] args) { double[] firstArray = new double[]{7, 12, 17, 22}; double[] secondArray = new double[]{3, 6, 9, 12}; double[] thirdArray = new double[4]; thirdArray[0] = firstArray[0] + secondArray[0]; thirdArray[1] = firstArray[1] + secondArray[1]; thirdArray[2] = firstArray[2] + secondArray[2]; thirdArray[3] = firstArray[3] + secondArray[3]; for (int i = 0; i < 4; i++) { Console.WriteLine(thirdArray[i]); } } } }
run
|
edit
|
history
|
help
0
DateTime
subbareddy
Towers of Hanoi
newMultDiv
Fechas
multiplicação
asdfrgyjukiuytre sdcd
4.1 Composition
Chest Interaction Unity
Simple Overriding