Complete 7

This commit is contained in:
Thuan Bui
2025-02-22 10:53:29 +09:00
parent f8b292fa9f
commit 478676904f
2 changed files with 11 additions and 7 deletions
+6 -2
View File
@@ -1,7 +1,11 @@
const convertToCelsius = function() {
const convertToCelsius = function(degreeinF) {
degreeinC = Math.round(((degreeinF - 32) / 1.8) * 10)/10
return degreeinC
};
const convertToFahrenheit = function() {
const convertToFahrenheit = function(degreeinC) {
degreeinF = Math.round(((degreeinC* 1.8) + 32) * 10)/10
return degreeinF
};
// Do not edit below this line