Clear questions and runnable code
get the best and fastest answer
Re: calculator scriptby kiruthika.bkite (Scribe)
|on Apr 29, 2010 at 04:12 UTC||Need Help??|
The problem is ,in the following .
Here you are checking the number of arguments is five.
So it will fail if you are giving input in the following format.
1 + 2 3
So that time you need to check the number of arguments is equal to four.
If you want to give input like,
1 + 2 + 3
then that time you need to check the number of arguments is equal to five.And you need to change the following part of code also.
These changes are needed only in the case of if you are giving input in the format 1 + 2 + 3 .