Hey guys,
So I am trying to make a program that will prompt the user to enter 3 integers (int1, int2, int3), then sort the integers into ascending order. I have the program reading the integers, but I can't get it to sort. I know I can use the sort function but I don't know how to do it. Here is what I have:
#include <iostream>
using namespace std;
int main()
{
cout<<"Enter an integer: ";
int int1;
cin>>int1;
cout<<"Enter another integer: ";
int int2;
cin>>int2;
cout<<"Enter a last integer: ";
int int3;
cin>>int3;
}
Thanks in advance!