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); }


What is the sum of the odd numbers between 14and 20?

The odd numbers between 14 and 20 are 15, 17, and 19. To find their sum, you add them together: 15 + 17 + 19 = 51. Therefore, the sum of the odd numbers between 14 and 20 is 51.


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.


What is the difference between the smallest and the largest odd numbers between 220 and 940?

The smallest odd number between 220 and 940 is 221, while the largest odd number in that range is 939. To find the difference between these two numbers, subtract 221 from 939, which equals 718. Therefore, the difference between the smallest and largest odd numbers between 220 and 940 is 718.


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