answersLogoWhite

0

import java.io.*;

class aeven

{

public static void main(String[] args)

{

try{

BufferedReader br1 = new BufferedReader(new InputStreamReader(System.in));

System.out.println("Enter 1st number : ");

int num1 = Integer.parseInt(br1.readLine());

System.out.println("Enter 2nd number : ");

int num2 = Integer.parseInt(br1.readLine());

System.out.println("Odd Numbers : ");

for (int i=num1;i <=num2 ; i++)

{

if(i%2!=0 )

{

System.out.print(i+ ", ");

}

}

}

catch(Exception e){}

}

}

User Avatar

Wiki User

14y ago

What else can I help you with?

Related Questions

What do you notice when you find the difference between an odd and even numbers?

The answer is an odd number.


Write a java program to find sum of even and odd numbers in given array?

for(int i = 1; i &lt; 100; i+=2) { System.out.println(i); }


How many odd numbers are between 101 and 200?

Between the two numbers there are 49.


How many odd numbers between 38?

There are no odd numbers between 38 and 39, as 39 is the next integer and it is an odd number. Therefore, there are zero odd numbers between 38 and 39.


How many odd numbers are there between 15 and 105?

There are 44 odd numbers between the two.


What are the odd numbers between 40 and 53?

The odd numbers between 40 and 53 are 41,43,45,47,49,51.


Find the total of the odd numbers between 6 and 12?

there are 3.... 7,9,11


When you add all the odd numbers between one to twenty the sum total is hundred how will you make two group of five odd numbers so that you get sum total of fifty?

You can't find five odd numbers that add up to fifty; the sum of five odd numbers will always be odd.


How many odd numbers are between 20 and 100?

There are 40 odd numbers between 20 and 100. Remember that an odd number is every second number. There are 80 numbers between 20 and 100, so there are 40 odd numbers and 40 even numbers.


How many odd numbers are there between 2000 and 4999?

There are 1499 odd numbers between 2000 and 4999


How many odd numbers are between 20 and 158?

There are 69 odd numbers between 20 and 158.


How many odd numbers are there between 19 and 57?

There are 20 odd numbers between 19 and 57