Conditional operator: ?

This example reads in two numbers and prints them out in order.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Print two numbers in order
#include <iostream>
using namespace std;
int main() { 
  double num1,num2;
  cout<<"Enter a number:";
  cin>>num1;
  cout<<"Enter another number:";
  cin>>num2;
  (num1<num2)? cout<<num1<<"\t"<<num2: cout<<num2<<"\t"<<num1;
  cout<<endl;
  system("pause");
  return 0;
} // main
CODE

NEXT: Finds the smallest