I'm very sorry to hear this.My dog is 11 years old . We had to put the male dog down in 2017 as he became sick quite suddenly and on investigation it turned out that he had prostrate cancer. The thing was he never acted sick until the last. And then he started couging and didn't want to eat at all. I was quite devastated.
Pets are family and it can be quite devastating when they pass.