is 0 whole number or integer

0 is both a whole number and an integer.

A whole number is a non-negative integer, including 0. Since 0 is not a negative number, it can be classified as a whole number.

An integer is a number that can be positive, negative, or zero, and can include both whole numbers and their opposites. 0 can be considered an integer because it is neither positive nor negative.