edited by
393 views
0 votes
0 votes
I found it by doing some calculations on Google calculator.
What I am interested in is , by word "handling" i dont want to handle error but want to produce a valid output.
So how can i implement it in my code so that even if its invalid or not defined in earlier stage but its valid overall.
 
e.g 
 
As per given image, 1st execution is "not defined" but i just want to remember that step and later when it becomes a valid arithmetic i should give an output as zero.
Its mathematically correct expression hence I wanted to do it on my computer.
Can anybody help me to do so ?

Dont be offended , its just asked under curiosity (:

( I asked on SO  but they downvoted it.. :/ May be they dontt care about curiosity or its a silly thought :p but still i aske :v )

edited by

Please log in or register to answer this question.