#include <iostream>
#include <cmath>
#include <iomanip>
using namespace std;

int CountValuesBetween( float start, float end )
{
	int num = 0;
	for( ; start < end; start = nextafter( start, end ) ) {
		++num;
	}
	return num;
}

int main() {
	cout << "Between 500 000 and 500 001 -> " << CountValuesBetween( 500000.f, 500001.f ) << "\n";
	cout << "Between 600 000 and 600 001 -> " << CountValuesBetween( 600000.f, 600001.f ) << "\n";
	return 0;
}