Write a program to print odd numbers between 10 and 100 using while loop.
Answers
Answered by
5
Answer:
Using Java for Loop
- public class DisplayOddNumbersExample1.
{
- public static void main(String args[])
{
- int number=100;
- System.out.print("List of odd numbers from 1 to "+number+": ");
- for (int i=1; i<=number; i++
Similar questions
Social Sciences,
1 month ago
India Languages,
1 month ago
Sociology,
1 month ago
English,
2 months ago
Social Sciences,
2 months ago
English,
9 months ago
English,
9 months ago
Physics,
9 months ago