I have the following question and I can not think of a solution:
Make an algorithm that reads the duration of an event in seconds and displays it in hours, minutes, and seconds.
My code:
algoritmo "Duração de Evento"
var
segundos, sec, horas, minutos : real
inicio
escreva("Quantos segundos o Evento dura?")
leia(segundos)
horas<-segundos/3600
minutos<-(segundos%3600)/60
sec<-(segundos%3600)%60
escreva(horas,":",minutos,":",segundos)
fimalgoritmo
I always get: Syntax error