Hi, I'm doing this program where the user inputs 4 numbers and then it outputs the numbers in from the biggest to the least number. This is what I have si far . Can anyone help me with this please.
#include <iostream>
#include <fstream>
#include <string>
using namespace std;
#include <iostream>
#include <fstream>
#include <string>
using namespace std;
sorry if I didn't use the code tags, well, in mi program I don't wanna use &&,|| and things like that because that would be easier and I want to learn how to do it like that. I don't know how to keep doing it after the part where it says "}else{
//x>y and x>z and w>x> . coulf anyone tell me please.
If you want to become familiar with if() statements, fine. However if you are trying to "learn" (ie, memorize) the algorithm for arranging four numbers in some order then you will never be a good programmer.
Programming is an art form -- it is all about solving problems creatively.
Someone who can only solve problems by recalling some memorized
algorithm will never be a good programmer.