- 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 Antworten
+ 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
minirkk
minirkk - avatar
+ 1
Tnx for your help🥰
30th Apr 2020, 9:25 AM
Zahra