How to put string and variables together in Portuguese?

2

Hello, I'm learning Portugol for academic purposes and I'm having trouble with a code I'm doing.

ButwhenIrun,itrunsuntilit'stimetoaverage.Thenhesayshedidnotfindthestudentvariable.BeautyItookthestudentanddidso

escreval("sua média é " media)

The syntax appeared incorrect. But I did not find on the internet how I put a string together and the variable in the "write".

    
asked by anonymous 25.10.2017 / 22:53

1 answer

1

Use commas to interpolate strings and variables:

escreval(aluno, ", sua média é ", media)
    
25.10.2017 / 23:03