human
Smallest N digit number divisible by N | Function to find the smallest N - digit number divisible by N.
Find largest n digit number.
Find smallest n digit number.
If i is divisible by N , then print i and return.
.
Driver Code.
Given number.
Function call"
Solution in Python:
 ... What is a code to smallest N digit number divisible by N and the other steps required?
assistant
#Here is code to smallest N digit number divisible by N and the other steps required.
 def smallestNumber ( N ) :
	L = pow ( 10 , N ) - 1 ;
	S = pow ( 10 , N - 1 ) ;
	for i in range ( S , L ) :
		if ( i % N == 0 ) :
			print ( i ) ;
			return ;
if __name__ == " _ _ main _ _ " :
	N = 2 ;
	smallestNumber ( N )