20 lines
460 B
C#
20 lines
460 B
C#
using System;
|
|
using System.IO;
|
|
using System.Collections.Generic;
|
|
using System.Data.Common;
|
|
using System.Dynamic;
|
|
|
|
namespace Exercises_C_Sharp.E1_Foreach
|
|
{
|
|
class Exercise_1
|
|
{
|
|
public static void Start()
|
|
{
|
|
int[] arr = [1, 2, 3, 4];
|
|
//Geben Sie mit Hilfe einer Foreach-Schleife die Zahlen in dem oberen Array aus:
|
|
//Code START
|
|
Console.WriteLine(arr);
|
|
//Code ENDE
|
|
}
|
|
}
|
|
} |