Skip to content

Commit 900a234

Browse files
problem 22 is completed
1 parent 0ea048f commit 900a234

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

problem22/problem.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
একটা ফাংশন লিখবা যেটাকে তুমি কোন সংখ্যাকে ইনপুট হিসেবে দিলে সে সেই সংখ্যার square করে সেই square কে রিটার্ন করবে।
2+
3+
অর্থাৎ তুমি ইনপুট হিসেবে 5 দিলে সেটাতে স্কয়ারে হিসেবে 25 আউটপুট হিসেবে পাবে।
4+
5+
6+
Write a function that if you give a number as input it will square that number and return that square.
7+
8+
That is, if you give 5 as input, it will get 25 as output squared.

problem22/problem22.js

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
/*
2+
3+
একটা ফাংশন লিখবা যেটাকে তুমি কোন সংখ্যাকে ইনপুট হিসেবে দিলে সে সেই সংখ্যার square করে সেই square কে রিটার্ন করবে।
4+
5+
অর্থাৎ তুমি ইনপুট হিসেবে 5 দিলে সেটাতে স্কয়ারে হিসেবে 25 আউটপুট হিসেবে পাবে।
6+
7+
8+
Write a function that if you give a number as input it will square that number and return that square.
9+
That is, if you give 5 as input, it will get 25 as output squared.
10+
11+
*/
12+
13+
14+
function squareTheNum(num){
15+
16+
return num*num;
17+
}
18+
19+
console.log(squareTheNum(5));

0 commit comments

Comments
 (0)