/* * Programmieren fuer Physiker, SS 2010 * * Modulo / Divisions Spielwiese */ #include using namespace std ; int main() { int a,b ; cout << "Zahl a: " ; cin >> a ; cout << "Zahl b: " ; cin >> b ; // Ergebnis der Ganzzahldivision cout << "a/b : " << a/b << endl ; // Divisionsrest (Operator %) cout << "a%b : " << a%b << endl ; }