I need help right now! | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 2

I need help right now!

How to write a function wich declares if the given number is a square or not ?

30th Apr 2020, 9:02 AM
Zahra
3 Answers
+ 1
Get the sqrt of the number and store it in a double variable and an int variable. Check if both are equal or not. If both are equal then it is a perfect square
30th Apr 2020, 9:14 AM
Abirame Dhevendran
Abirame Dhevendran - avatar
+ 2
Plead remove "right now" from your question!(are you requesting or ordering?)
30th Apr 2020, 9:13 AM
Rohit
+ 1
Tnx for your help🥰
30th Apr 2020, 9:25 AM
Zahra