/// @file   main.cpp
/// @author Jens Gruschel
/// @date   2016-07-14
/// Division mit Rest durchfuehren

#include <iostream>

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

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

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

    // Ergebnis ausgeben
    int result = x / y;
    int remainder = x % y;
    cout << "Ergebnis: " << result << " Rest: " << remainder << endl;

    return 0;
}