initial commit
This commit is contained in:
parent
3ee72952d1
commit
715a1af6ba
@ -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) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user