Write a program to calculate area of a square by using method and by getting the input from user