11.07.2015 Views

Lista 03a - DCC/UFMG

Lista 03a - DCC/UFMG

Lista 03a - DCC/UFMG

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

40) Escreva um algoritmo em PORTUGOL que calcule o m.d.c. (máximo divisor comum)entre A e B (número inteiros e positivos). Esses dois valores são passados pelo usuárioatravés do teclado.algoritmo L3P040;varinteiro: A, B, C, MDC;inícioleia(A,B);C ← 1 ;enquanto ( C

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!