Solution:
The oxidation number of nickel in and are 0, +2 and +4, respectively.
The total number of electrons that an atom acquires or loses in the process of joining with another atom to create a chemical bond is known as the oxidation number, also known as the oxidation state.