Smallest N digit number which is a multiple of 5 | C # implementation of the approach ; Function to return the smallest n digit number which is a multiple of 5 ; Driver code
using System ; class GFG { static int smallestMultiple ( int n ) { if ( n == 1 ) return 5 ; return ( int ) ( Math . Pow ( 10 , n - 1 ) ) ; } public static void Main ( ) { int n = 4 ; Console . Write ( smallestMultiple ( n ) ) ; } }