Skip to content

Instantly share code, notes, and snippets.

@lrlucena
Forked from anonymous/gist:7832723
Created December 6, 2013 21:52
Embed
What would you like to do?
var numero := leia_inteiro
var r :=""
enquanto numero>0 faca
n = numero/2
resto = numero - n*2
r := r + resto.toString
numero := n
fim
escreva r.inverta
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment