0
I know you need to import the Calendar library.But I don’t know how the current time function works.I’m trying to print on the screen to test this function. Go the following code
programa{
inclua biblioteca Calendario
funcao inicio()
{
real valor
escreva("{Exercício 20 - É possivel assistir o filme?}\n\n")
escreva("{============ Cinema Estudonauta ===========\n}")
escreva("Horário do filme: 12h - Preço do ingresso: R$20,00\n")
escreva("--------------------------------------------------")
escreva("Quanto dinheiro você tem? R$")
leia(valor)
escreva(Calendario.hora_atual(formato_24h))
}
}
Do not format code. Because I still can’t format here in Stackoverflow.
Note: I am using linux distro. This interferes something?
This function receives a logical value as parameter, uses it as Calendar.hora_current(true) or Calendar.hora_current(false)
– Daniel Mendes
Daniel thanks for the help. Here at stackoverflow when there is a -1 next to the question what it means?
– Ronan
That someone voted negative, this can happen both in the question and in the answer.
– Daniel Mendes
Read this part here: https://answall.com/help/whats-reputation
– Daniel Mendes