Skip to content

Commit d16727d

Browse files
problem 34 completed
1 parent 8de2d88 commit d16727d

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

problem34/problem.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
তোমাকে ফাংশনের ইনপুট হিসেবে সেলসিয়াস দিবে। তুমি ক্যালকুলেশন করে তাপমাত্রা ফারেনহাইট এ কনভার্ট করে সেটার আউটপুট রিটার্ন করবে
2+
3+
You will be given Celsius as input to the function. You calculate the temperature and convert it to Fahrenheit and return the output

problem34/problem34.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
/* You will be given Celsius as input to the function.
2+
You calculate the temperature and convert it to Fahrenheit and return the output */
3+
4+
function celsiusToFahren(celsius) {
5+
const inputCel = celsius;
6+
const fahrenheit = inputCel * 9 / 5 + 32;
7+
const massage = inputCel + "\xB0C Celsius equals to "+ fahrenheit + "\xB0F fahrenheit.";
8+
return massage;
9+
}
10+
11+
console.log(celsiusToFahren(11));

0 commit comments

Comments
 (0)