Check if a large number is divisible by 20 | C # program to check if a large ' n ' number is divisible by 20. ; Get number with last two digits ; Check if the number formed by last two digits is divisible by 5 and 4. ; Driver Code
using System ; using System . Text ; class GFG { static bool divisibleBy20 ( String num ) { int lastTwoDigits = Int32 . Parse ( num . Substring ( 2 ) ) ; return ( ( lastTwoDigits % 5 == 0 ) && ( lastTwoDigits % 4 == 0 ) ) ; } static public void Main ( ) { String num = "63284689320" ; if ( divisibleBy20 ( num ) == true ) Console . Write ( " Yes " ) ; else Console . Write ( " No " ) ; } }