From 730c3c2e39ced57b7301ff02e2b02e031d796614 Mon Sep 17 00:00:00 2001 From: Arotex Date: Sat, 4 Oct 2025 09:39:18 +0200 Subject: [PATCH] =?UTF-8?q?neue=20Printfunktion=20mit=20multiplikation=20i?= =?UTF-8?q?n=20INT=20=C3=BCbernommen=20und=20getestet?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.cpp | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/main.cpp b/main.cpp index 6c58c6c..883b5ce 100644 --- a/main.cpp +++ b/main.cpp @@ -10,12 +10,19 @@ main() std::cout << "experimentelle und evtl nicht fehlerfreier Code" << std::endl; - print_number(20); // neue Funktion unsicher und unvollständig -} + //Funktionstest + + for (int i = 0; i < 50; i++) + { + print_number(i); // neue Funktion unsicher und unvollständig + } + +}; -void print_number(int x){ +void print_number(int x) +{ std::cout << "Die Zahl ist: " << x << std::endl; std::cout << "Das doppelte der Zahl ist: " << x*2 << std::endl; } \ No newline at end of file