0

How to write a program in Java using any of loops to print Odd Numbers from 1 to 25.

How to write a program in Java using any of loops to print Odd Numbers from 1 to 25.Use any loop.

4/18/2019 3:33:03 PM

Zain Ul Abdeen

3 Answers

New Answer

+3

You can do it like this: for (int i = 1; i <= 25; i++) { if (i % 2 != 0) { System.out.println(i); } }

+6

https://code.sololearn.com/cuVb92LO7cnk/?ref=app

+1

I have told you