I have to write a program that takes three integers as input and outputs the integers in order from least to greatest.
Here is a sample run as an example:
Enter three integers: 4, -2, 0
Sorted from least to greatest, the integers are -2, 0, 4
1 2 3 4 5 6 7 8 9 10 11 12 13 14
#include <iostream>
usingnamespace std;
void order3(int a, int b, int c);
int main()
{
cout << "Enter three integers: ";
int a, b, c;
cin >> a >> b >> c;
order3(a, b, c);
return 0;
}
I'm not sure how to define the "order3" function in my code. Please help.