While differentiating fruits from vegetable, tomato stays in limbo. The classic dilemma whether tomato is a fruit or a vegetable continues to trouble us. Usually, we differentiate between these two categories on a simple observation that vegetables are cooked and fruits are eaten raw. How about we brush up our basics and support our argument with scientific facts?
Fruits are the seed-bearing part of a flowering plant. That explains why there are so many bitter seeds in fruits whereas you will never find a vegetable with seeds.
Fruits are developed from the ovary after flowering. On the other hand, anything edible other than fruits, nuts, cereals, etc, is classified as vegetables.
Also See

The benefits of consuming the bounty of nature are innumerable. However, fruits provide us with a higher amount of calories as compared to vegetables because of the sugar content.
We all know the heavenly and exotic taste of fruits. From sweet to sour, fruits like mango, melons, strawberries, and grapes are some of our favorites. Vegetables have enhanced flavors when cooked, raw vegetables are mostly bland.
Unlike vegetables, fruits play a very important role in plant reproduction. Plants produce seeds and distribute seeds for reproductive cycle. Vegetables have no part either in seed distribution or the reproduction cycle.
Seems like differentiating between fruits and vegetable is not that difficult. But if you are still wondering where to put tomato, then its “seeds” are your cue.