ps:你们什么寒假作业好难啊,我看不懂,哎老了老了
以下引用chaochao于2007-2-2 11:27:18的发言:
余数=被除数-取整数(被除数/除数)*除数
例子:15%7
15-取整数(15/7)*7
=15-取整数(2.14)*7
=15-2*7
=15-14
=1
15.3%2.7
15.3-取整数(15.3/2.7)*2.7
=15.3-取整数(5.66)*2.7
=15.3-5*2.7
=15.3-13.5
=1.8
[本贴由作者于 2007-2-2 11:40:41 最后编辑]
欢迎光临 Project1 (https://rpg.blue/) | Powered by Discuz! X3.1 |