identify which condition is necessary for a number to be rational

a. it must not be an endless decimal
b. it must be written as a fraction
c. it must be able to be expressed as an integer divided by a nonzero integer
d. it must not be negative

b. it must be written as a fraction