Consider that your program will print a "youthful" version of the birthday song if the user is under 21. The program uses an iteration/loop statement to print lyrics that count up to the user's current age. Answer each of the following questions/prompts regarding the required iteration/loop statement:

What will be the starting/initialization value for the loop's counter variable?
-- Using correct Java syntax, create a conditional statement that, when evaluated, determines if the loop will run and how long it will run.

How will you manipulate the counter variable on each iteration to ensure the "youthful" song lyrics count up as expected?

Solved
Show answers

Ask an AI advisor a question