Skip to content

Instantly share code, notes, and snippets.

@easleyschool
Created October 11, 2019 04:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save easleyschool/8eb22bb78541b2737f10be43ff15ab8f to your computer and use it in GitHub Desktop.
Save easleyschool/8eb22bb78541b2737f10be43ff15ab8f to your computer and use it in GitHub Desktop.
/*
we have to calculate the square of n
*/
for i=1 to n
do n = n + n
// when the loop ends n will hold its square
return n
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment