How do I extract the highest number of 3 user inputs in C++?
thanks
oldroad
:)
read all three. Check whether first > second and second > third.
Based on those 2 comparisons you should know whether the third comparison (first > second) is needed or not.
If it's not needed you should know which number is the greatest.
This is the same for any language...
Thanks for replying. I have beening doing something similar. I had 3 comparison instead of 2. I will work with the 2 comparison and see how it goes.
Thanks
oldroad
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.