Created
October 11, 2019 04:32
-
-
Save easleyschool/8eb22bb78541b2737f10be43ff15ab8f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
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