Question: 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!

3-1 Please do the coding in C language! Here is a listing

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!