BlueBook
Given the real coefficients
Be sure to output indeterminate
and undefined
whenever appropriate.
Remember
Output the value of
Input Specification
The input consists of two real numbers,
Output Specification
Output the value of indeterminate
and undefined
whenever appropriate.
Sample Input 1
Copy
10
5
Sample Output 1
Copy
-0.50
Sample Input 2
Copy
13.5555
1.244685
Sample Output 2
Copy
-0.09
Sample Input 3
Copy
0
0
Sample Output 3
Copy
indeterminate
Sample Input 4
Copy
0
4
Sample Output 4
Copy
undefined
Comments
I can't get through case 3
Note that a and b can be negative, -4 / 0 is still undefined, and your code doesn't output anything if either a or b is negative.
I cannot get through case 1. the rest of them i passed.
You have to print 2 decimal places.