화씨 섭씨 변환 공식을 프로그래밍 의사 코드로 알아봅니다.

> // (32°F − 32) × 5/9 = 0°C
> int fahrenheit = 32;
> int celsius = (int)((fahrenheit - 32) * (5 / 9.0));
> celsius
0
> 

 

 

Comments


Comments are closed