human
Write me a code to print values of ' a ' in equation ( a + b ) <= n and a + b is divisible by x and the other steps required given the following:
Print values of ' a ' in equation ( a + b ) <= n and a + b is divisible by x | function to Find values of a , in equation ( a + b ) <= n and a + b is divisible by x ..
least possible which is divisible by x.
run a loop to get required answer.
increase value by x.
answer is possible.
Driver code.
function call"
Solution in Python:
assistant
#Here is code to print values of ' a ' in equation ( a + b ) <= n and a + b is divisible by x and the other steps required.
 def PossibleValues ( b , x , n ) :
	leastdivisible = int ( b / x + 1 ) * x
	flag = 1
	while ( leastdivisible <= n ) :
		if ( leastdivisible - b >= 1 ) :
			print ( leastdivisible - b , end = " ▁ " )
			leastdivisible += x
			flag = 0
		else :
			break
	if ( flag != 0 ) :
		print ( - 1 )
if __name__ == ' _ _ main _ _ ' :
	b = 10
	x = 6
	n = 40
	PossibleValues ( b , x , n )