Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Usos funcao aleatorio #607

Conversation

Aristidescosta
Copy link
Contributor

Corrigido o erro anterior no leia

Agora códigos como:

algoritmo "aleatorio"
var
   mes1, mes2 :real

inicio
   escreval("Digite o mes do ano")

   aleatorio 1, 12
       leia(mes1)
   aleatorio off
       leia(mes2)

   escreval("")
   escreval("Mes 1:", mes1)
   escreval("Mes 2:", mes2)
fimAlgoritmo

ou

algoritmo "aleatorio"
var
   nome :caracter

inicio
   escreval("Digite o seu nome: ")

   aleatorio on
       leia(nome)
   escreval("")
   escreval("Olá ", nome)
fimAlgoritmo

Já funcionam...

@leonelsanchesdasilva leonelsanchesdasilva merged commit 87dc3a3 into DesignLiquido:principal Jan 29, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants