Least to Greatest
//C++ Program LeastToGreatest //Gabriel Reyes January 16, 2022 CIS-5 #include <iostream> using namespace std; int main() { float n1, n2, n3; cout << "Enter three numbers: "; cin >> n1 >> n2 >> n3; if (n1 >= n2 && n1 >= n3) cout << "Largest number: " << n1; if (n2 <= n1 && n2 >= n3) cout << "Middle number: " << n2; if (n3 <= n1 && n3 <= n2) cout << "Smallest number: " << n3; return 0; } Hello I am trying to make these lines of code print out numbers least to greatest however when i enter it, only the smallest number will pop up, can anyone help me figure out what to do for it to show the least, the middle, and the greatest number? thank you in advanced