program AES11021;
uses Crt;
var Dividendo,
Divisor, Cociente, Resto : Integer;
begin
ClrScr;
Write( 'Introduzca
dividendo (entero): ' );
ReadLn( Dividendo );
Write( 'Introduzca
divisor (entero): ' );
ReadLn( Divisor );
Cociente := Dividendo div Divisor;
Resto := Dividendo mod Divisor;
Write( Dividendo, ' div ',
Divisor, ' = ',
Cociente,
' ( Resto = ',
Resto, ' )'
);
end.
|