Question: Create a program that does the following in C program with all documentation 1. Uses a for loop. 2. Asks the user for their age.
Create a program that does the following in C program with all documentation
1. Uses a "for" loop.
2. Asks the user for their age.
3. Prints "Happy Birthday" for every year of the user's age, along with the year.
Here is what the output of the program looks like.

RACIS126\CIS126 November 2018 DevelopmentUnit 2 Unit 2 Graded Exercise 3 Code Solution.exe hat is your age? 25 Happy Birthday! (year 1) Happy Birthday! (year 2) Happy Birthday! (year 3) Happy Birthday! (year 4) Happy Birthday! (year 5) Happy Birthday! (year 6) Happy Birthday! (year 7) Happy Birthday! (year 8) Happy Birthday! (year 9) Happy Birthday! (year 10) Happy Birthday! (year 11) Happy Birthday! (year 12) Happy Birthday! (year 13) Happy Birthday! (year 14) Happy Birthday! (year 15) Happy Birthday! (year 16) Happy Birthday! (year 17) Happy Birthday! (year 18) Happy Birthday! (year 19) Happy Birthday! (year 20) Happy Birthday! (year 21) Happy Birthday! (year 22) Happy Birthday! (year 23) Happy Birthday! (year 24) Happy Birthday! (year 25) Process exited after 4.195 seconds with return value 25 Press any key to continue
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
