-- (4)
(iv) Write a program to print all odd numbers from 100 to 150
(Using Do-While).
Answers
Answered by
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
Biology,
24 days ago
Geography,
1 month ago
Physics,
1 month ago
Computer Science,
8 months ago
Math,
8 months ago