[cs13001] Question about lab 4 part 1

Mikhail Nesterenko mikhail at cs.kent.edu
Tue Feb 5 13:01:44 EST 2013



> I was wondering if for the second operation (square root) what you wanted
> us to do if a negative number is input. Should it quit? Or should we just
> do sqrt(abs(MyVar)) so it will work with negative numbers as well?

You may assume that the user input is always positive. That is, no
extra processing is required.

Thanks,
-- 
Mikhail


More information about the cs13001 mailing list