1. If I had known, I would have come. →
Had I known, I would have come.
2. If she had studied, she would have passed. →
Had she studied, she would have passed.
3. If they had not missed the bus, they would be here. →
Had they not missed the bus, they would be here.