Created
September 15, 2014 20:20
-
-
Save fogus/1258aaa31c349c8f45f0 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
#lang algol60 | |
begin | |
integer procedure SIGMA(x, i, n); | |
value n; | |
integer x, i, n; | |
begin | |
integer sum; | |
sum:=0; | |
for i:=1 step 1 until n do | |
sum:=sum+x; | |
SIGMA:=sum; | |
end; | |
integer q; | |
printnln(SIGMA(q*2-1, q, 7)); | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment