This isn't homework, I'm working through the Malik book on my own.
Am I supposed to use one big loop for this whole task, or a seperate loop for each sub-task?
Code://****************************************************************************** // Malik Chapter 5 programming exercise 8 // Pretty stinkin' involved! // 'Write a program that uses a while loop to perform the following steps: //****************************************************************************** #include<iostrea> using namespace std; int main() { //a. Prompt the user to input two integers (smaller one first) int firstNum, secondNum; //b. Output all odd numbers between firstNum and secondNum. //c. Output the sum of all even numbers between firstNum and secondNum. //d. Output the number and their square between 1 and 10. //e. Output the sum of the square of odd numbers between firstNum and secondNum. //f. Output all uppercase letters.