initial commit

This commit is contained in:
Tilo Brockmann 2023-10-24 15:57:21 +02:00
parent 3ee72952d1
commit 715a1af6ba

View File

@ -3,8 +3,13 @@ package prak1;
public class Main { public class Main {
public static void main(String[] args) { public static void main(String[] args) {
int loopLength = 200;
if (args != null && args.length != 0) {
loopLength = Integer.parseInt(args[0]);
}
int previousValue = 0; int previousValue = 0;
for (int i = 0; i < 200; i++) { for (int i = 0; i <= loopLength; i++) {
if (i == 0) { if (i == 0) {
continue; continue;
} else if (i % 5 == 0) { } else if (i % 5 == 0) {