Skip to content

Commit

Permalink
Ajustando leitura/escrita
Browse files Browse the repository at this point in the history
  • Loading branch information
sqmedeiros committed Jul 4, 2016
1 parent f08fa90 commit 8d41373
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions test/semYes/textoContaLetra.por
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ repita enquanto i <= 26
i = i + 1
fim*/

entrada(linha)
leia(linha)

inteiro i = 1
inteiro letra = 0
Expand All @@ -19,4 +19,4 @@ repita enquanto i <= textoComp(linha)
i = i + 1
fim

saida("Letras = ", letra)
escreva("Letras = ", letra)
10 changes: 5 additions & 5 deletions test/semYes/textoEmbaralha.por
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
texto s1, s2

saida("Digite uma palava: ")
entrada(s1)
saida("Digite outra palavra: ")
entrada(s2)
escreva("Digite uma palava: ")
leia(s1)
escreva("Digite outra palavra: ")
leia(s2)

texto s3 = ""

Expand All @@ -23,4 +23,4 @@ repita enquanto i <= textoComp(s2)
i = i + 1
fim

saida(s1, s2, s3)
escreva(s1, s2, s3)
8 changes: 4 additions & 4 deletions test/semYes/textoOrdena.por
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
texto[] palavra
inteiro n

entrada(n)
leia(n)
texto aux
entrada(aux)
leia(aux)

palavra = novo texto[n]
inteiro i = 1
repita enquanto i <= n
entrada(palavra[i])
leia(palavra[i])
i = i + 1
fim

Expand All @@ -28,7 +28,7 @@ fim

i = 1
repita enquanto i <= n
saida(palavra[i])
escreva(palavra[i])
i = i + 1
fim

0 comments on commit 8d41373

Please sign in to comment.