Question clarification

what to do if N2 is 0 in case of / or % ?

You dont need to consider that case, simply calculate the result as n1%n2 and n1/n2 …