19 lines
482 B
C#
19 lines
482 B
C#
using System;
|
|
using System.IO;
|
|
using System.Collections.Generic;
|
|
using System.Data.Common;
|
|
|
|
namespace Exercises_C_Sharp.E1_Foreach
|
|
{
|
|
class Exercise_2
|
|
{
|
|
public static void Start()
|
|
{
|
|
int[] arr = [23, 45, 24, 56, 34, 56, 23, 56, 23, 5];
|
|
//Addieren Sie alle Werte in dem Array mit einer Foreach-Schleife und geben Sie das Ergebnis aus:
|
|
//Code START
|
|
Console.WriteLine(arr);
|
|
//Code ENDE
|
|
}
|
|
}
|
|
} |