222k views
5 votes
Given a double variable named areaOfSquare, write the necassary code to read in a value, the area of some square, into areaOfSquare and print out the length of that side of that square

1 Answer

2 votes
The variable that is given:
areaOfSquare is a double variable
It will have to ask for the length of a side of the square designated as lengthofSide and simply that value.
areaOfSquare = lengthOfSide^2
Before displaying the value of the variable
User Luka Cerrutti
by
6.1k points