From f2b9da84ddf60053665e1067c943d9b22ec0bfa5 Mon Sep 17 00:00:00 2001 From: INNA Date: Thu, 8 Feb 2024 19:28:16 +0100 Subject: [PATCH] =?UTF-8?q?Hinzuf=C3=BCgen=20der=20Schleife=20zur=20Umwand?= =?UTF-8?q?lung=20der=20Dezimalzahl=20in=20Bin=C3=A4rform?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/decbinary.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/decbinary.c b/src/decbinary.c index aff5c71..f015dbf 100644 --- a/src/decbinary.c +++ b/src/decbinary.c @@ -1,8 +1,14 @@ #include #include "decbinary.h" -int dezimal_zu_binär(int dezimalzahl); +int dezimal_zu_binär(int dezimalzahl) { -int binärzahl[32]; -int i = 0; + int binärzahl[32]; + int i = 0; + + while (dezimalzahl > 0) { + } + + return i; +} \ No newline at end of file