human
Diagonal of a Regular Pentagon | Function to find the diagonal of a regular pentagon.
Side cannot be negative.
Length of the diagonal.
Driver code"
Solution in Python:
 ... Give me a code to diagonal of a Regular Pentagon and the other steps required?
assistant
#Here is code to diagonal of a Regular Pentagon and the other steps required.
 def pentdiagonal ( a ) :
	if ( a < 0 ) :
		return - 1
	d = 1.22 * a
	return d
if __name__ == " _ _ main _ _ " :
	a = 6
	print ( pentdiagonal ( a ) )