Find the largest N digit multiple of N | Python3 program to find largest multiple of N containing N digits ; Function to find the largest N digit multiple of N ; Driver code
from math import floor NEW_LINE def smallestNumber ( N ) : NEW_LINE INDENT print ( N * floor ( ( pow ( 10 , N ) - 1 ) / N ) ) NEW_LINE DEDENT if __name__ == ' _ _ main _ _ ' : NEW_LINE INDENT N = 2 NEW_LINE smallestNumber ( N ) NEW_LINE DEDENT