n should be divisible by i
if ( n % ( i + 1 ) != 0 ) { flag = false ; break ; } } if ( flag ) cout << N << " ▁ is ▁ Polydivisible ▁ number . " ; else cout << N << " ▁ is ▁ Not ▁ Polydivisible ▁ number . " ; }