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.

35) Escreva um algoritmo em PORTUGOL que determine se dois valores inteiros epositivos A e B são primos entre si. (dois números inteiros são ditos primos entre si,caso não exista divisor comum aos dois números).algoritmo L3P035;varinteiro: A, B, C;iníciológico: SIT;SIT ← verdadeiro;leia(A,B);MOD ← A;C ← 1;enquanto ( SIT e C

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

Saved successfully!

Ooh no, something went wrong!