Browse Source

initial commit

master
Tilo Brockmann 1 year ago
parent
commit
715a1af6ba
1 changed files with 6 additions and 1 deletions
  1. 6
    1
      src/prak1/Main.java

+ 6
- 1
src/prak1/Main.java View File

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) {

Loading…
Cancel
Save