human
Maximum possible sum of K even multiples of 5 in a given range | Function to find the maximum sum of K even multiples of 5 in the range [ L , R ].
Store the total number of even multiples of 5 in the range [ L , R ].
Check if K > N.
If true , print - 1 and return.
Otherwise , divide R by 10.
Store the sum using the formula.
Print the sum.
Driver Code.
Given L , R and K.
Function Call"
Solution in Python:

Give me a code to maximum possible sum of K even multiples of 5 in a given range and the other steps required?
assistant
#Here is code to maximum possible sum of K even multiples of 5 in a given range and the other steps required.
 def maxksum ( L , R , K ) :
	N = ( R // 10 - L // 10 ) + 1 ;
	if ( K > N ) :
		print ( - 1 ) ;
		return ;
	R = R // 10 ;
	X = R - K ;
	sum = 10 * ( ( R * ( R + 1 ) ) // 2 - ( X * ( X + 1 ) ) // 2 ) ;
	print ( sum ) ;
if __name__ == " _ _ main _ _ " :
	L = 16 ; R = 60 ; K = 4 ;
	maxksum ( L , R , K ) ;