Calculate the solution
Steps
- Understand the problem.
- We need to calculate the area using the
formula, area
= PI * radius2
- radius2 is the
value of radius * radius.
- Design a solution.
- Multiply the value in radius by the value in radius and
store in the container radius_squared.
- Multiply the value radius_squared in
by the value in PI
and store the result in area.
- Test the solution.