1 / 10

Inicio

Exercício 1:. Inicio. pi  3.14. Leia(raio). area  pi * pot (raio, 2). Escreva(area). Fim. Exercício 2:. Inicio. Leia(numero). centena  (numero div 100) dezena  (numero div 10) unidade  ((centena*100)+(dezena*10)) - numero. Escreva(unidade). Fim. Exercício 3:. Inicio.

kali
Download Presentation

Inicio

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Exercício 1: Inicio pi  3.14 Leia(raio) area  pi * pot (raio, 2) Escreva(area) Fim

  2. Exercício 2: Inicio Leia(numero) centena  (numero div 100) dezena  (numero div 10) unidade  ((centena*100)+(dezena*10)) - numero Escreva(unidade) Fim

  3. Exercício 3: Inicio Leia(CT, QLA, QP) C  (QP / QLA) AF  (CT – QLA) * C Escreva(C, AF) Fim

  4. Exercício 4: Inicio Leia(dia, mes) Verdade Falso (mes = 1) (dia <= 20) Verdade Falso Escreva(“Aquário”) Escreva(“Capricórnio”) Observação: Repete a estrutura acima mais 11 vezes, até fechar a definição do algoritmo e chegar no Fim. Fim

  5. Exercício 5: Inicio Leia(idade) (idade >= 18) e (idade <= 65) Falso Falso (idade < 16) Escreva(“Eleitor Facultativo”) Verdade Verdade Escreva(“Eleitor Obrigatório”) Escreva(“Não Votante”) Fim

  6. Exercício 6: Inicio Leia(mes) (mes) Verdade Observação: Repete a estrutura ao lado para cada um dos valores do “caso”, definido no algoritmo. 1 2 Escreva(“Janeiro”) Escreva(“Fevereiro”) Fim

  7. Exercício 7: Inicio F  50 C  5 / 9 (F – 32) F  F + 1 Escreva(C) Verdade (F <= 150) Falso Fim

  8. Exercício 8: Inicio A  1 B  1 H  0 H  H + (A / B) A  A + 1 B  B + 2 Verdade (A <= 50) Falso Escreva(H) Fim

  9. Exercício 9: Inicio A  1 B  1 S  0 A  A + 1 B  A * A Verdade Falso (A MOD 2) Verdade S  S – (A / B) S  S + (A / B) (A <= 100) Falso Escreva(S) Fim

  10. Exercício 10: Inicio ano  0 joao  150 lucas  110 Verdade joao  joao + 2 lucas  lucas + 3 ano  ano + 1 (joao >= lucas) Falso Escreva(ano) Fim

More Related