I have to make a program that tells a user to enter three positive integers and give them a least, middle and greatest value. How would I do that, since I tried a bunch of if and else if statements and it didn't work.
I have to make a program that tells a user to enter three positive integers and give them a least, middle and greatest value. How would I do that, since I tried a bunch of if and else if statements and it didn't work.
Use a bunch of if and else if statements, it'll work
Look up a C++ Reference and learn How To Ask Questions The Smart WayOriginally Posted by Bjarne Stroustrup (2000-10-14)
I tried but it didn't work, how would using a bunch of em work haha
What did you try and how do you know it didn't work?
Look up a C++ Reference and learn How To Ask Questions The Smart WayOriginally Posted by Bjarne Stroustrup (2000-10-14)
It's important to show us what you've tried, otherwise we can't help fix your code
Fact - Beethoven wrote his first symphony in C