If a cat isn't eating it's always time for the veterinarian!
As Trond points out, make sure he is drinking water. And until you can see a vet keep the cat properly warm (not hot, but make sure he isn't cold).
This could be a disease he caught from the other cat, or it could be a severe case of grief, but when a cat isn't eating veterinary intervention is needed urgently!
EDIT: Since a vet has (hopefully) ruled out diseases it's time to go into caregiver mode.
I'd try the following, roughly in order, until the cat is eating again:
Wet food, first in a bowl, then trying to get him to lick it off your finger, make sure to try both chunks in gravy, and the pasty stuff.
Treats, either hand fed, or mixed in wet or dry food.
Try warming the wet food in the microwave, to make it more smelly. Fed in bowl, or by hand.
Chicken (careful not to include bones), or cooked fish.
Tuna, but make sure it's high quality, and never more than a little. It smells really good to cats, and I've never met a cat who will refuse it. But it does contain some traces of mercury, which will build up in the body and could cause issues in larger amounts.
If none of the above works, it may be time to look into force feeding, I'd get back in touch with the vet to get instructions on how to do this, and with what.
It is also important during all of this to give your cat extra attention, lots of cuddles, maybe having him in your lap on a warm blanket whenever your lap is available. And trying to get back to normal by playing with him.