Can someone pls show me or get me started in the right direction for writing a while loop to perforem the following steps:
1. Prompt the user to input two integers: dirstNum and secondNum. 2. Output all results to a file, placing an appropriate lable between each section of output. 3. Output all odd numbers between firstNum and secondNum. 4. Output the sum of all even numbers between firstNum and secondNum. 5. Output the numbers and their square between firstNum and secondNum. 6. Output the sun of the squares of the odd numbers between firstNum and secondnum.
You can divide your assignment in several parts: receiving input from user, writing to a file and performing calculations on numbers. Read more about the first two on Java Tutorial and then you can ask more specific questions.