Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C programming Write a program that will prompt a user to enter someone's age. Then read that value into a variable of type int. The

C programming image text in transcribed
Write a program that will prompt a user to enter someone's age. Then read that value into a variable of type int. The program will then print a statement to the screen as follows depending on the person's age: Age is 50 or higher Between 40 and 50 Between 30 and 40 Less than 30 Print "You are over 50" Print "You are in your forties" Print "You are in your thirties" Print "You are really young!" Test your program with the following ages: 62 24 42 e Previous

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

Guide To Client Server Databases

Authors: Joe Salemi

2nd Edition

1562763105, 978-1562763107

More Books

Students also viewed these Databases questions