/// @file   main.cpp
/// @author Jens Gruschel
/// @date   2016-07-14
/// Minimum und Maximum zweier eingegebener Zahlen bestimmen

#include <iostream>

using std::cin;
using std::cout;
using std::endl;

int main()
{
    // erste Zahl eingeben
    cout << "erste Zahl: ";
    double x;
    cin >> x;

    // zweite Zahl eingeben
    cout << "zweite Zahl: ";
    double y;
    cin >> y;

    // Minimum und Maximum bestimmen
    double min;
    double max;
    if (x < y)
    {
        min = x;
        max = y;
    }
    else
    {
        min = y;
        max = x;
    }

    // Ergebnis ausgeben
    cout << "Minimum: " << min << " Maximum: " << max << endl;

    return 0;
}