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.

6) Escreva um algoritmo em PORTUGOL que imprima todos os números múltiplos de 5,no intervalo fechado de 1 a 500.algoritmo L3P006;varinteiro: C;iníciopara C de 5 até 500 passo 5 façaimprima(C);fim-parafimprogram l3p006;varC: integer;beginfor C := 5 to 500 doif (C mod 5 = 0 ) thenwriteLn(C);end.for C = 5 : 500if ( mod( C, 5 ) == 0 )disp( C );endend<strong>UFMG</strong> – ICEx – <strong>DCC</strong> – Programação de Computadores – 2º. Sem 2005 – David Menoti 6

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

Saved successfully!

Ooh no, something went wrong!