GUPTA MECHANICAL

IN THIS WEBSITE I CAN TELL ALL ABOUT TECH. TIPS AND TRICKS APP REVIEWS AND UNBOXINGS ALSO TECH. NEWS .............

Wednesday, 7 September 2022

[Solution] Fever CodeChef Solution | Solution CodeChef


Problem

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.

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.
Solution Click Below:-  👉CLICK HERE👈
👇👇👇👇👇

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

Explanation:

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.

No comments:

Post a Comment