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.
3 odpowiedzi
+ 3
You can do it like this:
for (int i = 1; i <= 25; i++) {
if (i % 2 != 0) {
System.out.println(i);
}
}
+ 1
I have told you