I'm in a beginner class and my output should look like
25 20 15
26 21 16
27 22 17
28 23 18
This is my loop:
for (int i = 25; i <= 28; i++){
for (int a = i; a <= i-10; a -=5);{
System.out.print(a);
}
System.out.println("");
}
I can't figure out what's wrong with it, but it gives me an error message. Am I doing it right? Nested loops are really difficult for me...
for (int a = i; a <= i-10; a -=5);{this will never execute.