Driver program to test above
int main ( ) { Point p ( 1 , 9 ) ; Point q ( 8 , 16 ) ; cout << " The ▁ number ▁ of ▁ integral ▁ points ▁ between ▁ " << " ( " << p . x << " , ▁ " << p . y << " ) ▁ and ▁ ( " << q . x << " , ▁ " << q . y << " ) ▁ is ▁ " << getCount ( p , q ) ; return 0 ; }