From 3a85545d12133514e39b77492b018beca282cbd2 Mon Sep 17 00:00:00 2001 From: Matti Date: Fri, 11 Oct 2024 11:32:01 +0200 Subject: [PATCH] Refactor Aufg1 --- CppMainRepo.cpp | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/CppMainRepo.cpp b/CppMainRepo.cpp index 1185056..7fe66ea 100644 --- a/CppMainRepo.cpp +++ b/CppMainRepo.cpp @@ -1,7 +1,13 @@ #include +#pragma region Aufgabe1 +/* +Ouput der Zahlen 10 bis 0 an die Konsole +Ouput aller Buchstaben des Alphabets +*/ + void counter() { - for (int i = 10; i >= 0; i--) + for (int i = 10; i > 0; i--) { printf("%d\n", i); } @@ -16,10 +22,16 @@ void alphabet() { } } -int main() +void Aufg1Main() { counter(); alphabet(); +} +#pragma endregion + +int main() +{ + Aufg1Main(); return 0; }