Question: Write a for loop that iterates numAges times. Each iteration: Assign userAge with the next input. Then, put userAge to output. Then, put :
Write a for loop that iterates numAges times. Each iteration: Assign userAge with the next input. Then, put userAge to output. Then, put : to output.
Ex: If input is: then output is:
:::
use the code below:
integer numAges
integer userAge
integer i
Program tested with three inputs:
First:
Second:
Third:
numAges Get next input
Your solution goes here
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
