/*
4.	Write a C++ program to read a real number and to display whether 
the fractional part of it is zero (i.e. whether it's an integer or not).
*/

#include <iostream>
using namespace std;
int main()
{
	float number;
	int n;
	cout << "Enter a real number: ";
	cin >> number;
	n = number;
	// OR n = int(number);
	if (number == n)
		cout << "The fraction is zero.\n";
	else
		cout << "The fraction is not zero.\n";
	return 0;
}
