Uebungsaufgaben_ITFS_3_SS_2025/Exercises/E24_Enums/Exercise_3.cs
2025-02-10 08:57:36 +01:00

26 lines
632 B
C#

using System;
using System.IO;
namespace Exercises_C_Sharp.E24_Enumns
{
class Exercise_3
{
//Malen Sie unten in der Methode ShowForm die übergebene Form mit Hilfe von Sternchen (*) auf die Konsole.
enum SpecialForms {Dreieck, Quadrat, Rechteck, Kreis}
public static void Start()
{
ShowForm(SpecialForms.Dreieck);
ShowForm(SpecialForms.Kreis);
ShowForm(SpecialForms.Quadrat);
ShowForm(SpecialForms.Rechteck);
}
static void ShowForm(SpecialForms a)
{
//Code START
//Code ENDE
}
}
}