Skip to content

Commit 9d3a7af

Browse files
problem31 solved
1 parent 001e33b commit 9d3a7af

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

problem31/problem.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
এমন একটা ফ্যাংশনা লিখো যেটাকে তুমি ঘন্টাকে ইনপুট প্যারামিটার হিসেবে দিবে। আর সে সেই ঘন্টাকে মিনিটে কনভার্ট করে মিনিট রিটার্ন করবে।
2+
3+
Write a function that takes the hour as an input parameter. And it will convert those hours to minutes and return minutes.

problem31/problem31.js

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
/* এমন একটা ফ্যাংশনা লিখো যেটাকে তুমি ঘন্টাকে ইনপুট প্যারামিটার হিসেবে দিবে।
2+
আর সে সেই ঘন্টাকে মিনিটে কনভার্ট করে মিনিট রিটার্ন করবে।
3+
4+
Write a function that takes the hour as an input parameter.
5+
And it will convert those hours to minutes and return minutes. */
6+
7+
8+
function hoursToMinutes(hours){
9+
10+
const minutes = hours * 60;
11+
return minutes;
12+
};
13+
14+
15+
const hoursHaveToConvert = 24;
16+
const convertingMinutes = hoursToMinutes(hoursHaveToConvert);
17+
18+
console.log(hoursHaveToConvert,"hours equals to",convertingMinutes,"minutes.");

0 commit comments

Comments
 (0)