Check whether two convex regular polygon have same center or not | Function to check whether two convex polygons have the same center or not ; Driver code
function check ( n , m ) { if ( m % n == 0 ) { document . write ( " " ) ; } else { document . write ( " " ) ; } return 0 ; } var n = 5 ; var m = 10 ; check ( n , m ) ;