How do you get your dog to stop eating the cat food and the cat to stop eating the dog food?



I already started feeding my cat on the table (which I dont like doing) but its the only place my dog cant get the food. Now, my cat has started eating the dog food on the floor and neglecting her food.