The whole numbers are the positive integers from 0 to infinity that is used in the number system. These figures…