Quotes from Wikipedia:
In botany, a fruit is the ripened ovary—together with seeds—of a flowering plant.
However, a great many common vegetables, as well as nuts and grains, are the fruit of the plant species they come from.
and this diagram: http://en.wikipedia.org/wiki/Image:Fruitandveg.png