Tomatoes are vegetables. If we're speaking botanically, then squash, pumpkins, cucumbers, peppers, eggplants, corn kernels, and bean are also fruit. US supreme court ruled that they're vegetables. EU declared tomatoes to be fruit for the purpose of making jam, though.