Book Thick Check

Programming Interview Easy 8 views
Back to Questions

Problem Description

Title (no spaces) and pages are provided. Create Book class with method thick() that returns YES if pages>300 else NO.

Input Format

One line: title pages.

Output Format

YES or NO.

Sample Test Case

Input:
HP 500
Output:
YES

Constraints

0

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next