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: 3261, then output is:
2:6:1:
use the code below:
integer numAges
integer userAge
integer i
// Program tested with three inputs:
// First: 3261
// Second: 26472
// Third: -134
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 blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!