|
|
вернуться в форумn = 0 ? Послано RR 19 мар 2011 14:50 When n = 0, if we have to calculate T, is the answer 'undefined' ? if we have to calculate V, is the answer 'error' or 'undefined'? Re: n = 0 ? Послано RR 19 мар 2011 15:02 Accepted. Formula should be understood like math :) Edited by author 19.03.2011 19:58 Edited by author 19.03.2011 19:58 Re: n = 0 ? I don't understend what to do in this case. If we have any of t,v,n,p given to us <= 0 then we should write 'error'? Or I haven't understood the problem right? Re: n = 0 ? I just haven't read properly. If we have input p = 0 and n = 0 then we should output 'undefined'. If (p = 0 and n <> 0) or (p <> 0 and n = 0) then we should output 'error'. When we calculate n and p CAN be 0. We just must output '0'. When we calculate T and V CAN'T be 0. We just must output 'error'. I hope it'll help and you will not be sitting for hours as I did. Sorry for my English, but I think it is possible to understand what I meant even with my mistakes. to George_Aloyan[PTSObninsk] |
|
|