Driver code
int main ( ) { int res = count ( 1 , 2 ) ; ( res == -1 ) ? cout << " INF " : cout << res ; cout << endl ; res = count ( 5 , 3 ) ; ( res == -1 ) ? cout << " INF " : cout << res ; cout << endl ; res = count ( 3 , 5 ) ; ( res == -1 ) ? cout << " INF " : cout << res ; return 0 ; }