002-004-005

Input Validation: Number Range Check

Easy

Problem Description

Input Validation: Number Range Check

In this problem, you will create a program that reads an integer from standard input, checks whether it falls within the range of 1 to 100 (inclusive), and displays the result to standard output.

Learning Objective: Understand how to validate input value ranges

Input an integer and check if it's between 1 and 100, then output the result.

Input

Line 1: Integer

Output

If in range: Valid: [number]
If out of range: Invalid: out of range

Example

Input:

50

Output:

Valid: 50

Input:

150

Output:

Invalid: out of range

Ready to Try Running Code?

Log in to access the code editor and execute your solutions for this problem.

Don't have an account?

Sign Up