human
Find the Number which contain the digit d | Returns true if d is present as digit in number x ..
Breal loop if d is present as digit.
If loop broke.
function to display the values.
Check all numbers one by one.
checking for digit.
Driver code"
Solution in Python:
assistant
#Here is code to find the Number which contain the digit d and the other steps required.
 def isDigitPresent ( x , d ) :
	while ( x > 0 ) :
		if ( x % 10 == d ) :
			break
		x = x / 10
	return ( x > 0 )
def printNumbers ( n , d ) :
	for i in range ( 0 , n + 1 ) :
		if ( i == d or isDigitPresent ( i , d ) ) :
			print ( i , end = " ▁ " )
n = 47
d = 7
print ( " The ▁ number ▁ of ▁ values ▁ are " )
printNumbers ( n , d )