TheManatee

Exercício 2 - "Desenhe a porta" Fácil

Jul 1st, 2018
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Algoritmo "Desenhe a porta"
  2.  
  3. Var
  4.  
  5. linha: inteiro
  6. frase: caractere
  7.  
  8. Inicio
  9.  
  10. para linha de 1 ate 10 faca
  11.  
  12.    se ( (linha = 1) ou (linha = 10) ) entao
  13.        frase <- "##########"
  14.    senao
  15.       se (linha = 5) entao
  16.        frase <- "#     -0 #"
  17.       senao
  18.        frase <- "#        #"
  19.       fimse
  20.    fimse
  21.       escreval(frase)
  22. fimpara
  23.  
  24. Fimalgoritmo
Add Comment
Please, Sign In to add comment