Question: i. Using forloop, output all odd numbers between firstNumber and secondNumber and output the sum of all even numbers between firstNumber and secondNumber. (Write an
i. Using forloop, output all odd numbers between firstNumber and secondNumber and output the sum of all even numbers between firstNumber and secondNumber. (Write an algorithm and draw a flow-chart). [3 points) ii. Using while loop, output the numbers and their cubes between 1 and 10 and output the sum of the cubes of the odd numbers between firstNumber and secondNumber. (Write only an algorithm no need to draw flow-chart). [3 points]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
