Scanning Multiple inputs from one line using scanf
You have your printing loop inside your reading loop. It is trying to print out all of the trip information after reading the first one in. Edit: The trouble here is that the way scanf handles single characters is kinda unintuitive next to the way it handles strings and numbers. It reads the very next … Read more