Your task is to write a program that calculates the area of a circle given its radius. This time, we’ll focus on encapsulating the code into functions/methods.
Python
def calculate_area(radius): # code
C#
double CalculateArea(double radius){ // code}