From 30dddda26ed4d1edda612323e16446f0c8e234aa Mon Sep 17 00:00:00 2001 From: Jason Peters Date: Mon, 5 Feb 2024 17:52:22 +0100 Subject: [PATCH] =?UTF-8?q?refactoring:=20Lesbarkeit=20erh=C3=B6ht?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/c/Jason/ASCII_art.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/c/Jason/ASCII_art.c b/src/main/c/Jason/ASCII_art.c index 311787f..9be847b 100644 --- a/src/main/c/Jason/ASCII_art.c +++ b/src/main/c/Jason/ASCII_art.c @@ -26,13 +26,13 @@ int ASCII_Art(){ void quadrat(){ frageNachGroesse(); - int groesse; - scanf("%d", &groesse); - int arraySize = berechnungDerLaengeDesQuadratArrays(groesse); + int LaengeDerZeilen; + scanf("%d", &LaengeDerZeilen); + int arraySize = berechnungDerLaengeDesQuadratArrays(LaengeDerZeilen); char Quadrat[arraySize]; befuellenDesArraysMitX(Quadrat, arraySize); befuelleDasArrayMitLeerzeichen(Quadrat, arraySize); - befuelleDasArrayMitZeilenumbruechen(Quadrat,groesse); + befuelleDasArrayMitZeilenumbruechen(Quadrat,LaengeDerZeilen); printf("\n%s", Quadrat);