print("Area of square:", area_of_square(side_length))
```
This code prompts the user to enter the side length of a square, calculates the base and height of a triangle with the same area as the square, and then calculates and displays the areas of both the triangle and the square.