explain
public class Main {
public static void main(String[] args) {
int i, j, p, q=1;
for (i=1;i<=5;i++)
{
p=q;
for (j=1;j<=i;j++)
{
System.out.print(p+" ");
p=p+2;
}
q=q+2;
System.out.println();
}
}
}
OUTPUT
1
3 5
5 7 9
7 9 11 13
9 11 13 15 17
EXPLAIN HOW
Answers
Answered by
0
Answer:
Type this códe in BlueJ IDÉ
Cómpile it then
You'll get the output
Similar questions