Question #314100

print "happy" if each of them takes the same number "not happy" otherwise


Expert's answer

Here is program:

int main()
{
	int happy, happy1;
	cin >> happy;
	cin >> happy1;
	if (happy == happy1)
	{
		cout << "Happy" << endl;
	}
	else
	{
		cout << "Not happy" << endl;
	}
}
LATEST TUTORIALS
APPROVED BY CLIENTS