I want to display fgets()
input on 1 line, here the code:
printf("%s study at %s and he is %i years old", siswa01.name, siswa01.school, siswa01.age);
When I run the program, the output was like this:
jordan study at Las Vegas and he is 12 years old
I want to display the output:
jordan study at las vegas and he is 12 years old
How can I get the display on 1 line using fgets()
?