Adult Check Problem
Adult Check Problem — ExecCode School DSA Practice
Solve the Adult Check problem on ExecCode. Free online school DSA practice in Combined Simple Logic. Write and run code in Java, C++, Python — no signup required to run.
Problem description
You are given the age of a person. Your task is to determine whether the person is an Adult or a Minor. A person is considered an Adult if their age is 18 years or more. Otherwise, the person is considered a Minor.
Examples
Input 21; Output Adult. Input 17; Output Minor
Constraints
0 <= N <= 120
Practice Adult Check free on ExecCode. Browse DSA problems, topic map, and placement guides.