Write a program that uses while loop to perform the following steps:
a. Prompt the user to enter first number and second number. (First must be less than second number)
b. Output all odd numbers between first and second number.
c. Output all the number and their squares.
d. output the sum of all squares.
I'm done with a and b. I don't know how to do the c and d. Please help!
Scanner input=new Scanner(System.in);
System.out.print("Enter First Number: ");
System.out.print("Enter Second Number: ");
System.out.print("Your First Number is greater than second.So Please re-enter: ");