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

@@ -3,8 +3,13 @@ package prak1;
public class Main {
public static void main(String[] args) {

int loopLength = 200;
if (args != null && args.length != 0) {
loopLength = Integer.parseInt(args[0]);
}

int previousValue = 0;
for (int i = 0; i < 200; i++) {
for (int i = 0; i <= loopLength; i++) {
if (i == 0) {
continue;
} else if (i % 5 == 0) {

Loading…
Cancel
Save