求商和求余

program e999;
var
  c, f: integer;
begin
  read(c, f);
  writeln(c, ' div ', f, ' = ', c div f);
  writeln(c, ' mod ', f, ' = ', c mod f);
end.
posted @ 2010-01-01 18:05  SmartIOI  阅读(161)  评论(0)    收藏  举报
本站采用CC授权如需转载、引用文章,请务必附上作者及来源处。 Creative Commons License