This commit is contained in:
Matti 2024-04-10 21:06:04 +02:00
parent e9f2dd5c52
commit 1b367eebc6
3 changed files with 4 additions and 2 deletions

View File

@ -9,8 +9,10 @@ public class aufg1 {
System.out.println(i);
}
}
System.out.println("=================");
System.out.println("=================");
for(int i = MAXIMUM; i > 1; i--){
if(i % 2 == 1){
System.out.println(i);

View File

@ -4,7 +4,7 @@ public class aufg2 {
public static void main(String[] args){
int sum = 0;
for(int i = 1; i<21; i++){
for(int i = 1; i < 21; i++){
sum += i;
System.out.println("the sum of the first " + i + " integers is: " + sum);
}

View File

@ -9,7 +9,7 @@ public class aufg3 {
// =====================
public static void main(String[] args){
int MAXIMUM = 10_000;
int MAXIMUM = 100_000;
int MAX_PER_ROW = 20;
boolean[] primes = new boolean[MAXIMUM];