Answer to Question #314100 in C++ for mido

Question #314100

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


1
Expert's answer
2022-03-19T02:24:30-0400

Here is program:

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

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog