Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Array Foreach with sum
//Title of this code //Rextester.Program.Main is the entry point for your code. Don't change it. using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; namespace Rextester { public class Program { public static void Main(string[] args) { int[] number = new int[3]; number[0] = 542; number[1] = 320; number[2] = 138; foreach(int turd in number) { Console.WriteLine(turd); } Console.WriteLine("Total = " + number.Sum()); } } }
run
|
edit
|
history
|
help
0
gggsggsgg
Unity First Person Controller
Hi
Kopi Ping Menu
lala
saetr
Reverse String
HourCouter
Best Exam Collection site
12