Detect Integer or Float

PHP Easy 5 views
Back to Questions
Next First Character Category Easy N

Problem Description

A number is given as text. Print INT if it looks like an integer, otherwise FLOAT.

Input Format

One token s.

Output Format

INT or FLOAT.

Sample Test Case

Input:
12.50
Output:
FLOAT

Constraints

s length

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Next