[C] 计算余数 →→→→→进入此内容的聊天室

来自 , 2019-07-10, 写在 C, 查看 105 次.
URL http://www.code666.cn/view/d4dd111a
  1. #include <stdio.h>
  2. #include <math.h>
  3.  
  4. int main ( void )
  5. {
  6.         double x = 5.0, y = 2.0;
  7.         double result;
  8.  
  9.         result = fmod ( x,y );
  10.         printf ( "The remainder of (%lf / %lf) is \
  11.          %lf\n", x, y, result );
  12.         return 0;
  13. }
  14.  

回复 "计算余数"

这儿你可以回复上面这条便签

captcha