From fgets
documentation:
A newline character makes fgets stop reading, but it is considered a valid character by the function and included in the string copied to str.
So when you read in your strings, they actually contain the newline character, which is then printed as part of the string. Instead of using fgets()
use scanf()
which will read until the first whitespace (and not including):
scanf( "%50s", aula );