CodechefAug 26, 2025

Fever

Hazrat Ali

Codechef

A person is said to have fever if his body temperature is strictly greater than 98 °F.

Determine if Chef has fever or not.

Input Format

  • The first line contains a single integer T — the number of test cases. Then the test cases follow.
  • The first and only line of each test case contains one integer X - the body temperature of Chef in °F.

Output Format

For each test case, output YES if Chef has fever. Otherwise, output NO.

You may print each character of YES and NO in uppercase or lowercase (for example, yesyEsYes will be considered identical).

Constraints

  • 1≤T≤10
  • 94≤X≤103

Sample 1:

Input
3
98
100
96
Output
 
NO
YES
NO

Solution

T = int(input())   

for _ in range(T):
    X = int(input())   
    if X > 98:
        print("YES")
    else:
        print("NO")




Comments