Skip to content

Instantly share code, notes, and snippets.

Created December 6, 2013 21:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save anonymous/7832723 to your computer and use it in GitHub Desktop.
Save anonymous/7832723 to your computer and use it in GitHub Desktop.
Conversor de decimal para binario
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
@lrlucena
Copy link

lrlucena commented Dec 6, 2013

ok

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment