Created
March 29, 2013 19:07
-
-
Save lipelopeslage/5272898 to your computer and use it in GitHub Desktop.
lista02_13
This file contains hidden or 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
algoritmo "lista2_13" | |
var i,a,s,p:real | |
inicio | |
a <- 1 | |
i <- 1 | |
s <- 0 | |
repita | |
s <- s+(1/(a^3)) | |
a <- a*3 | |
i <- i+1 | |
ate i>51 | |
p <- (s*32)^(1/3) | |
escreval("Resultado:",p) | |
fimalgoritmo |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment