/************************************************************************** swap.cc author: Nandor Sieben input: lines containing an integer and a double separated by whitespaces output: same lines, numbers reversed, separated by a tab stops at first empty line ***************************************************************************/ #include using namespace std; main (void) { int x; // first number in the line double y; // second number in the line while (cin >> x) { // read lines while not an empty line cin >> y; // read second number cout << y << "\t" << x << "\n"; // print them reversed } }