We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d16727d commit 0b33e23Copy full SHA for 0b33e23
problem35/problem.md
@@ -0,0 +1 @@
1
+You will be given the function input as Fahrenheit. You calculate the temperature and convert it to Celsius and return the output
problem35/problem35.js
@@ -0,0 +1,13 @@
+
2
3
+/* You will be given the function input as Fahrenheit. You calculate the temperature and convert it to Celsius and return the output */
4
5
6
+function fahrenToCelsius(fahren) {
7
+ const inputFahren = fahren;
8
+ const celsius = (inputFahren -32) * 5 / 9 ;
9
+ const massage = inputFahren + "\xB0F fahrenheit equals to "+ celsius.toFixed(2) + "\xB0C Celsius.";
10
+ return massage;
11
+ }
12
13
+ console.log(fahrenToCelsius(11));
0 commit comments