Using fgets instead fo scanf for blank line.