Directions...Write a program SumOfOdds that has one main method that asks the user to input two odd integers where the first is smaller than the second. The program ouputs the sum of all the odd integers from the smaller output to the larger output. You must use a while loop for this program.
public class SumOfOdds {
public SumOfOdds(int input1, int input2)
{
num1 = input1;
num2 = input2;
}
int num1;
int num2;
if (num1%2=1)&&(num2%2=1)
while (num1<num2)
{
int sum = sum
}
private int num1;
private int num2;
}