Fruits are the part of the plant containing seeds. This includes tomatos, squash, eggplant and cucumber.

Vegetables are plant roots, stems, and leaves. This includes rhubarb, used in pies.

I learned this in school.