June 1, 2014 Matthew Maennche Java, Learn To Code 21011, Java 2 LANGUAGE: JAVA CHALLENGE: The area of a square is stored in a double variable named area. Write an expression whose value is length of the diagonal of the square. SOLUTION: Math.sqrt(area*2)
The ‘*2’ part is incorrect.
Correction: I thought this was for the one that’s just the one side. This is correct—sorry and thanks!