Computer Science, asked by mdas93740, 1 month ago

-- (4)
(iv) Write a program to print all odd numbers from 100 to 150
(Using Do-While).​

Answers

Answered by ajb7899
0

Answer:

The answer is given in Java environment.

Explanation:

public class Print

{

void main

{

int i = 100;

do

{

if(i%2 !=0)

System.out.println(i);

i++;

}

while(i<=150);

}

}

Similar questions