fix bug fator, bloco - has a bug in do/while loop