Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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.

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Logics For Databases And Information Systems

Authors: Jan Chomicki ,Gunter Saake

1st Edition

1461375827, 978-1461375821

More Books

Students also viewed these Databases questions

Question

e. What do you know about your ethnic background?

Answered: 1 week ago

Question

b. Why were these values considered important?

Answered: 1 week ago