I think I got most of this right, but I figured I'd see what you professionals think.
Write an If statement that takes the square root of the variable area only when its value is non-negative. Otherwise, the statement should set area equal to its absolute value and then take the square root of the new value. The result should be assigned to the variable root.
To get the absolute value you need to use abs(area).
Reading this part of the assignment: Otherwise, the statement should set area equal to its absolute value I understand that you need to modify the value in 'area' ( area = abs(area); ) This will allow you to use the code calculating the root only once