English, asked by sumerchahal21511, 1 day ago

Write a java program to print odd numbers from 1 to 10 using continue.

Answers

Answered by rittupadala
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