From 693607211fc1d813a09d568780093c48fa27b482 Mon Sep 17 00:00:00 2001 From: INNA Date: Thu, 8 Feb 2024 19:47:22 +0100 Subject: [PATCH] =?UTF-8?q?Hinzuf=C3=BCgen=20der=20Berechnung=20des=20Bin?= =?UTF-8?q?=C3=A4rrests?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/decbinary.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/decbinary.c b/src/decbinary.c index f015dbf..55e179b 100644 --- a/src/decbinary.c +++ b/src/decbinary.c @@ -8,6 +8,7 @@ int dezimal_zu_binär(int dezimalzahl) { int i = 0; while (dezimalzahl > 0) { + binärzahl[i] = dezimalzahl % 2; } return i;