25.03.2015 Views

Lista 04 - UFMG

Lista 04 - UFMG

Lista 04 - UFMG

SHOW MORE
SHOW LESS

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

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

22) Faça um algoritmo em PORTUGOL que:<br />

a) Leia uma frase de 80 caracteres, incluindo brancos;<br />

b) Conte quantos brancos existem na frase;<br />

c) Conte quantas vezes a letra A aparece;<br />

d) Imprima o que foi calculado nos itens b e c.<br />

algoritmo L4P22;<br />

var<br />

literal: ENTRADA;<br />

inteiro: NUMBRANCO, NUMA, C;<br />

início<br />

NUMA

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

Saved successfully!

Ooh no, something went wrong!