human
Count of all even numbers in the range [ L , R ] whose sum of digits is divisible by 3 | Function to return the count of required numbers.
Count of numbers in range which are divisible by 6.
Driver code"
Solution in Python:
 Write me a code to count of all even numbers in the range [ L , R ] whose sum of digits is divisible by 3 and the other steps required?
assistant
#Here is code to count of all even numbers in the range [ L , R ] whose sum of digits is divisible by 3 and the other steps required.
 def countNumbers ( l , r ) :
	return ( ( r // 6 ) - ( l - 1 ) // 6 ) ;
if __name__ == " _ _ main _ _ " :
	l = 1000 ; r = 6000 ;
	print ( countNumbers ( l , r ) ) ;