Check whether two convex regular polygon have same center or not | C ++ implementation to check whether two convex polygons have same center ; Function to check whether two convex polygons have the same center or not ; Driver Code
#include <bits/stdc++.h> NEW_LINE using namespace std ; int check ( int n , int m ) { if ( m % n == 0 ) { cout << " YES " ; } else { cout << " NO " ; } return 0 ; } int main ( ) { int n = 5 ; int m = 10 ; check ( n , m ) ; return 0 ; }