[ad_1]
You can merge 2 for-statements.
for (int i = 1, j = 5; i <= 5; i++, j--) {
System.out.print(i + " " + j + " ");
}
[ad_2]
solved how to execute two for loops simultaneously in java without useing multithreading
[ad_1]
You can merge 2 for-statements.
for (int i = 1, j = 5; i <= 5; i++, j--) {
System.out.print(i + " " + j + " ");
}
[ad_2]
solved how to execute two for loops simultaneously in java without useing multithreading