`
yaojingguo
  • 浏览: 202070 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

Division and modulo in C/C++, Java and Python

 
阅读更多
引用

a is an integer, n is a positive integer.

C/C++
=====
quotient is rounded towards zero.
a mod n = a - n (a/n)

Python
======
Same as defined by CRLS.







分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics