Articles for tag: JAVASCRIPT강좌독학섭씨 화씨 변환웹프로그래밍자바스크립트프론트엔드

2018-05-13

Brandon

[자바스크립트] 21. 섭씨를 화씨로 변환

Convert Celsius to Fahrenheit  지금까지 배운 것을 응용해보겠습니다. 섭씨에서 화씨로 변환하는 알고리즘은 섭씨 온도 9/5에 32를 더한 온도입니다. 섭씨 온도를 나타내는 가변 celsius가 있습니다. 이미 정의 된 fahrenheit 변수를 사용하고 알고리즘을 적용하여 해당 화씨 온도를 지정하십시오. 노트 나중의 문제에서 함수와 return 문에 대해 다루기 때문에 너무 걱정하지 마십시오. 지금은 이미 배운 연산자 만 사용하십시오. 연습 function convertToF(celsius) { var fahrenheit; // Only change code below this line // Only change code above this line return fahrenheit; } // Change the inputs below to test your code convertToF(30); function convertToF(celsius) { var fahrenheit; // Only change code below this line fahrenheit