Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

3-1 Please do the coding in C language! Here is a listing of a program, which asks a user to enter his/her age. It will

3-1

Please do the coding in C language!

image text in transcribed

Here is a listing of a program, which asks a user to enter his/her age. It will print: a) "You are a golden" if the entered age is 50 and b) "You are not so golden" otherwise. #include int main() {int yourAge; printf(*'How old are you?: "); scanf("%d", &yourAge); if (yourAge == 50) printf("You are golden "); else print-f("You are not so golden "); return 0;} Modify the above program, so that it will print: "You are a kid" if the age is less than 13 "You are a teenager" if the age is between 13 and 19 "You are an adult" if greater than 19

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

Oracle Database 19c DBA By Examples Installation And Administration

Authors: Ravinder Gupta

1st Edition

B09FC7TQJ6, 979-8469226970

More Books

Students also viewed these Databases questions