Critical input :
-1
- 2
Critical output:
Overflow
Underflow
Explanation:
We know that,
1!=1*0!.
similarly we can write,
0!=0*(-1!);
=>(-1!)=0!/0
=1/0 [As 0!=1]
=infinitive(Overflow).
Again,
-1!=(-1)*(-2!)
=>(-2!)=(-1!)/(-1)
=(infinitive)/(-1) [As (-1!)=infinitive]
= - infinitive(Underflow)
0 comments:
একটি মন্তব্য পোস্ট করুন