Find the largest N digit multiple of N | C # program to find largest multiple of N containing N digits ; Function to find the largest N digit multiple of N ; Driver code
using System ; class GFG { static void smallestNumber ( int N ) { Console . Write ( N * Math . Floor ( ( Math . Pow ( 10 , N ) - 1 ) / N ) ) ; } public static void Main ( ) { int N = 2 ; smallestNumber ( N ) ; } }