Since squash tends to be cooked it is regarded as a vegetable, however, squash is a fruit since it contains seeds and they flower.