Driver code
static void Main ( ) { string version1 = "1.0.3" ; string version2 = "1.0.7" ; if ( versionCompare ( version1 , version2 ) < 0 ) Console . WriteLine ( version1 + " ▁ is ▁ smaller " ) ; else if ( versionCompare ( version1 , version2 ) > 0 ) Console . WriteLine ( version2 + " ▁ is ▁ smaller " ) ; else Console . WriteLine ( " Both ▁ version ▁ are ▁ equal " ) ; } }