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)
{
x = input1;
y = input2;
}
while (x<y)
{
}
private int x;
private int y;
}
This is what I have so far..not much.