You are viewing a single comment's thread. Return to all comments →
For Java coders: change line 10 to:
if(val * val == num)
A smart number is only smart if its a perfect square.
Seems like cookies are disabled on this browser, please enable them to open this website
Smart Number
You are viewing a single comment's thread. Return to all comments →
For Java coders: change line 10 to:
A smart number is only smart if its a perfect square.