Uebungsaufgaben_ITFA_2_SS_2025/Exercises/E06_Random/Exercise_3.cs
s.schueler.doz 19d199a2ad Initial
2025-02-10 17:06:29 +01:00

22 lines
476 B
C#

using System;
using System.IO;
using System.Collections.Generic;
namespace Exercises_C_Sharp.E06_Random
{
class Exercise_3
{
public static void Start()
{
//Sorgen Sie dafür, dass eine Zufallszahl zwischen 0 und 45 ausgegeben wird.
Random rand = new Random();
int k;
//Code START
k = -1;
//Code ENDE
Console.WriteLine(rand.Next() % k);
}
}
}