Write a program that uses while loop


Write a program that uses while loop 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 inclusive. 
C. Output the sum of all the even numbers between firstnum and secondnum inclusive. 
D. Output all the numbers and their squares between firstnum and secondnum inclusive. 
E. Output the sum of the squares of all the odd numbers between firstnum and secondnum inclusive. 
F. Output all the prime numbers between firstnum and secondnum inclusive.

Request for Solution File

Ask an Expert for Answer!!
Programming Languages: Write a program that uses while loop
Reference No:- TGS0125689

Expected delivery within 24 Hours