Ruby, 25 bytes
Math.sqrt(gets.to_i)%1==0
There probably is a shorter way but that's all I found.
Gregory
- 161
- 3
Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Visit Stack ExchangeMath.sqrt(gets.to_i)%1==0
There probably is a shorter way but that's all I found.