Develop a program to print Odd numbers from 50 to 70 using loop.
Answers
Answered by
0
Answer:
Explanation:
public class Main {
public static void main(String[] args) {
System.out.println("Odd numbers between 50 to 70 are:");
for (int i = 51; i <= 70; i += 2) {
System.out.println(i);
}
}
}
Similar questions