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
hello world
5. Generics
true or false
V5
Write a program to sort given array using bubble sort.
asdf
AX 2012 Test #1
Problem: on_off
problem_name
Check if string is palindrome