主页
C 语言
C Math remainder() 函数
demo_ref_math_remainder
运行 ❯
×
更改方向
保存代码
更改主题
#include
#include
int main() { printf("%f\n", remainder(11.0, 3.0)); printf("%f\n", remainder(16.0, 4.0)); printf("%f\n", remainder(31.0, 2.5)); return 0; }
-1.000000
0.000000
1.000000