Computer Science, asked by vishalvishal50612, 1 month ago

Write a program to print odd numbers between 10 and 100 using while loop.​

Answers

Answered by krishnakumarkti123
5

Answer:

Using Java for Loop

  1. public class DisplayOddNumbersExample1.

{

  1. public static void main(String args[])

{

  1. int number=100;
  2. System.out.print("List of odd numbers from 1 to "+number+": ");
  3. for (int i=1; i<=number; i++

Similar questions