23 lines
555 B
C#
23 lines
555 B
C#
using System;
|
|
using System.IO;
|
|
using System.Collections.Generic;
|
|
|
|
namespace Exercises_C_Sharp.E06_Random
|
|
{
|
|
class Exercise_5
|
|
{
|
|
public static void Start()
|
|
{
|
|
//Sorgen Sie dafür, dass immer drei verschiedene Zufallszahlen ausgegeben werden.
|
|
int[] intArray = new int[3];
|
|
|
|
//Code START
|
|
|
|
//Code ENDE
|
|
|
|
Console.WriteLine("Zahl 1: " + intArray[0]);
|
|
Console.WriteLine("Zahl 2: " + intArray[1]);
|
|
Console.WriteLine("Zahl 3: " + intArray[2]);
|
|
}
|
|
}
|
|
} |