From 16e60eadf94700e877f5690ff0d430c75a3ed3f5 Mon Sep 17 00:00:00 2001 From: Jason Peters Date: Mon, 5 Feb 2024 17:49:25 +0100 Subject: [PATCH] =?UTF-8?q?refactoring:=20Vert=C3=A4ndlicherer=20Variablen?= =?UTF-8?q?name?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/c/Jason/ASCII_art.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/c/Jason/ASCII_art.c b/src/main/c/Jason/ASCII_art.c index cc65c64..311787f 100644 --- a/src/main/c/Jason/ASCII_art.c +++ b/src/main/c/Jason/ASCII_art.c @@ -218,18 +218,18 @@ void befuellenDesWeihnachtsbaumsMitPlus(char arr[], int maxBreite, int zeilen){ int arrayGroesse = maxBreite * zeilen; int mitteDesBaums = maxBreite / 2; - int mengeX = 1; + int mengeDerXInDerZeile = 1; for(int i = zeilen; i > 0; i--){ int position = mitteDesBaums -1; - while(position < mitteDesBaums-1 + mengeX){ + while(position < mitteDesBaums-1 + mengeDerXInDerZeile){ arr[position++] = '+'; } mitteDesBaums += (maxBreite -1); - mengeX += 2; + mengeDerXInDerZeile += 2; } arr[arrayGroesse] = '\0'; }