Lena wants to create a Go program that takes as an input a certain length and prints the calculated area of a square and a circle.
So far, Lena has created the Square and Circle structs plus the Shape interface. However, she still needs to implement the interface methods that will make her program calculate the area of the Square and Circle structs!
Please help Lena and write the additional required code to implement the interfaces for the Square and Circle structs. Take notice that the mathematical formulas to calculate the areas of those geometric shapes are the following:
To solve this task, please use the special
math.Pi constant to properly calculate the interface method for the Circle struct.