Skip to content

Instantly share code, notes, and snippets.

@lipelopeslage
Created March 29, 2013 19:07
Show Gist options
  • Save lipelopeslage/5272898 to your computer and use it in GitHub Desktop.
Save lipelopeslage/5272898 to your computer and use it in GitHub Desktop.
lista02_13
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