Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Double0negative/b9ce3cc90eb07d3488e977189fae24bb to your computer and use it in GitHub Desktop.
Save Double0negative/b9ce3cc90eb07d3488e977189fae24bb to your computer and use it in GitHub Desktop.
for(let i = 0;;i++) {
let result = i * i;
if(result > n) return false;
if(result == n) return true;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment