Run Code
|
API
|
Code Wall
|
Users
|
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
Please
log in
to post a comment.
Moon Gravity
Vajdalinky
sdfghyjuki54efc sacd
obrazek
first VB code
Convert string to TimeSpan in C#
Ex03 cm=ft,in
Calculadora
PermuteAString
C# queue
Please log in to post a comment.