005-002-014
If-Else: Age Classification
Medium
Problem Description
If-Else: Age Classification
Learning Objective: Implement classification using multiple conditions
Overview
Create a program that determines admission category based on age.
Specifications
- Assign value 25 to variable
age - Classify based on:
- 12 or below: "Category: Child"
- 13 to 17: "Category: Teen"
- 18 to 64: "Category: Adult"
- 65 or above: "Category: Senior"
Output Format
Category: Adult
Ready to Try Running Code?
Log in to access the code editor and execute your solutions for this problem.
Don't have an account?
