+ 5
Challenge 3
The second challenge was a bit easy, now let's see a third one. Write a code for testing a square number without using conversions, and any math object operator except sqrt. Do it in any language you please.
11 Answers
+ 5
ikr allow js pls
+ 5
a = x => Number.isInteger(Math.sqrt(x))
done lol
a(49) returns true
a(50) returns false
+ 4
You should allow other languages also đ
+ 4
does that thing not look like a js code to you? maybe you should look into this https://cheeze.club/xeb5
+ 3
@Igor B mb fixed
+ 2
Okk All languages allowed.
+ 1
@Cheeze I wanted a code...xD.
+ 1
@cheese: You used %. The rules say that math operations other than sqrt are not allowed.
0
@Cheeze I meant attach an SL code...xD
0
@Igor, I meant Math object...xD