Problems
easyFahrenheit to Celsius
2 Koda Coins

Fahrenheit to Celsius

easy2s limit💾 64 MB

Description

Given a temperature in Fahrenheit F, convert it to Celsius C.

Formula: C = (F - 32) x \frac{5}{9}.

Output the integer floor of the resulting Celsius value.


Input Format

  • A single integer F.

  • Output Format

  • Print the integer floor of the Celsius value.

  • Constraints

  • -10^5 <= F <= 10^5