From c07127a8fe10ea7b69dd3d97e210fa4bde2c3393 Mon Sep 17 00:00:00 2001 From: obai Date: Mon, 30 Sep 2024 09:40:16 +0200 Subject: [PATCH] =?UTF-8?q?L=C3=BCcken=5Ffinden?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .classpath | 5 ----- .../src/Algorithmus/Lueken_finden.java | 16 ++++++++++++++++ 2 files changed, 16 insertions(+), 5 deletions(-) create mode 100644 Programmierung2/src/Algorithmus/Lueken_finden.java diff --git a/.classpath b/.classpath index 2bcb0d3..1b83d66 100644 --- a/.classpath +++ b/.classpath @@ -11,10 +11,5 @@ - - - - - diff --git a/Programmierung2/src/Algorithmus/Lueken_finden.java b/Programmierung2/src/Algorithmus/Lueken_finden.java new file mode 100644 index 0000000..0b4e552 --- /dev/null +++ b/Programmierung2/src/Algorithmus/Lueken_finden.java @@ -0,0 +1,16 @@ +package Algorithmus; + +public class Lueken_finden { + + public static void main(String[] args) { + for (int i = 0; i < Integer.MAX_VALUE; i++) { + float f = i; + + int merker = (int) f; + + if (i != merker) + System.out.println(i + " " + merker); + } + } + +}