fmod.cpp

来自「数据结构常用算法合集」· C++ 代码 · 共 13 行

CPP
13
字号
//fmod.cpp
#include <iostream.h>
#include <conio.h>
#include <math.h>
void main(void)
{
  double x = 5.0, y = 2.2;
  double remainder;
  remainder = fmod(x,y);
  cout<<x<<"除以"<<y<<"的余数="<< remainder;
  getch();
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?