write a program that uses a while loops to perform the following steps: a)prompt the user to input two integers: firstNum and secondNum.(firstNum…

write a program that uses a while loops to perform the following steps:a)prompt the user to input two integers: firstNum and secondNum.(firstNum must be less than secondNum.)b)Output all the odd numbers between firstNum and secondNum.c) Output the sum of all even numbers between firstNum and secondNum.d) Output all the numbers and their squares between 1 and 10.e) Output the sum of the squares of all the odd numbers between firstNum and secondNum.f) Output all the uppercase letters