```
Average speed = Distance traveled / Time taken
Substituting the given values:
Average speed = 45 km / 0.5 hours
Simplifying the expression:
Average speed = 90 km/h
Therefore, the average speed of the car was 90 km/h.