Write a java program to print odd numbers from 1 to 10 using continue.
Answers
Answered by
0
Answer:
public class DoWhileExample {
public static void main(String[] args) {
int i=1;
do{
System.out.println(i);
i++;
}while(i<=10);
}
Similar questions