when i assign rat other than 0 its work properly if i assign rat=0 it\'s not working properly if rat is other than 0 my program work properly and give me proper prim