kindly tell why i m not getting 100 score even output is coming correct?
Basic calculator
Remove that condition of n2!=0 from the division and modulo operation.
But that condition is necessary to be written otherwise the answer will be infinity?
It is give that n2 wonβt be 0.
Also you need to check this condition after you have taken the input for n2 not before that.
1 Like