Skip to content

Instantly share code, notes, and snippets.

Created December 6, 2013 21:51
What would you like to do?
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
escreva r.inverta
Copy link

lrlucena commented Dec 6, 2013


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