I think your assessment of this as "final code" needs revisiting :-)Quote:
Originally Posted by Saarah
how does this help? The constant isn't used in the program.Quote:
Originally Posted by Saarah
i know Salem said float but the argument to, and return value from, the sqrt function are both doubles so it seems quite odd to declare determinant as float rather than double especially when root1 and root2 are now doubles.Quote:
Originally Posted by Saarah
Your prompt here specifies a space as the separator but your format specifier specifies a comma. Also, why have you specified the need for a trailing comma?Quote:
Originally Posted by Saarah
This structure does not allow for the determinant being zero, say if both a and b = 4 and c=1.Quote:
Originally Posted by Saarah
I'm not entirely sure what's going on here but I find I have to end the input of variables by entering both a return and then an end-of-file character (crtl-z on windows, ctrl-d on unix).Quote:
Originally Posted by Saarah
welcome to our world Saarah.Quote:
Originally Posted by Saarah