Computer Science, asked by vijaykanyal178, 1 year ago

write a program in Java using for loop to print all the odd and even number upto 30 terms​ urgent exam practical

Answers

Answered by sn1342
2

Explanation:

int I=1, j=2

while(I<30&&j<30)

{

system.out("even number=" +j +"odd number=" +i + "\n")

I=I+2

j=j+2

}

hope this logic will help you

Similar questions