prettier
This commit is contained in:
parent
e9f2dd5c52
commit
1b367eebc6
@ -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);
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user