How to find out the square of a number using function? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

How to find out the square of a number using function?

Square of a number

24th Jul 2020, 6:38 PM
Jeziel Salsano R. Marak
Jeziel Salsano R. Marak - avatar
5 Answers
+ 6
Emanuel Maliaño , the question is about how to calculate the square of a number, this is explained by Esra. What you are talking about is the square root, this is something different. - the square of 7 is 7 multiplied by itself = 49 - the square root of 49 is 7
24th Jul 2020, 8:29 PM
Lothar
Lothar - avatar
+ 3
Jeziel Salsano R. Marak Please use appropriate tags for programming language. All we can do here is guess😄😄
24th Jul 2020, 6:41 PM
Tomiwa Joseph
Tomiwa Joseph - avatar
+ 2
Lothar 😳😅I read wrong
24th Jul 2020, 8:47 PM
Emanuel Maliaño
Emanuel Maliaño - avatar
+ 1
Many programming languages had their own sqrt function. [Python] number**number 2**2 = 4 [Java, JavaScript] Math.pow(n, k) Math.pow(2, 2) = 4
24th Jul 2020, 6:44 PM
Emanuel Maliaño
Emanuel Maliaño - avatar