[Solution] Fever solution codechef

Fever solution codechef – Chef is not feeling well today. He measured his body temperature using a thermometer and it came out to be X °F.

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

[Solution] Fever solution codechef

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).

[Solution] Fever solution codechef

  • 1 \le T \le 10
  • 94 \le X \le 103

Sample 1:

Input

Output

3
98
100
96
NO
YES
NO

Fever solution codechef

Test Case 1: Since X = 98 is not greater than 98, Chef does not have fever.

Test Case 2: Since X = 100 is greater than 98, Chef has fever.

Test Case 3: Since X = 96 is not greater than 98, Chef does not have fever.

For Solution

“Click Here”

Leave a Comment