Code in Python is below.
#For Math.pow()
import math
#Function
def calculateSurfaceArea(n):
#Take length and calculate the surface area with;
#Surface Area = 6 * (the length of edge)^2
return 6 * math.pow(n, 2)
#Main function
def Main():
#Get input from user.
edge = int(input("Enter the edge: "))
#Send it to our function.
print(f"Surface area: {calculateSurfaceArea(edge)} cm².")
#Declare the main.
if __name__ == "__main__":
Main()