Question: Write a program While Loops that uses while loops to perform the following steps: Prompt the user to input two positive integers: firstNum and secondNum
Write a program While Loops that uses while loops to perform the following steps: Prompt the user to input two positive integers: firstNum and secondNum (firstNum must be smaller than secondNum). Output all the even numbers between firstNum and secondNum inclusive. Output the sum of all the even numbers between firstNum and secondNum inclusive Output all the odd numbers between firstNum and secondNum inclusive. Output the sum of all the odd numbers between firstNum and secondNum inclusive Write a program Stars that uses two nested for loops to output the pattern of stars shown below (note that there are no spaces in between stars)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
