How can I add the 3 highest numbers when a user inputs 4 numbers?
For example the user enters 5 6 7 6, they would add 6 7 6 which would be 19.
The only idea I got was using an if
/else
statement. But I feel like that wouldn't be efficient in my code.