logo

Crowdly

Write a C++ program to check which number is closest to the value 100 among two ...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

Write a C++ program to check which number is closest to the value 100 among two given integers. Return 0 if the two numbers are in equal distance.

Sample output:

78, 95 => 95

95, 95 => 0

105, 95 => 0

95, 115 => 95

More questions like this

Want instant access to all verified answers on ocs-alatoo.edu.kg?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!