标签:blog strong 2014 io amp res
The library of fmod is #include <cmath>
#include<cstdio> #include<cstdlib> #include<algorithm> #include<map> #include<cstring> #include<cmath> using namespace std; int main(){ double x; long y; long long z; scanf("%lf",&x); double doubleMod = fmod(x,(double)3); printf("The result of x mod 3 is %.2lf\n",doubleMod); scanf("%ld",&y); printf("The result of y is %ld\n", y); scanf("%lld", &z); printf("The result of z is %lld\n", z); return 0; }
double long float类型读入读出 double取模 fmod,布布扣,bubuko.com
double long float类型读入读出 double取模 fmod
标签:blog strong 2014 io amp res
原文地址:http://blog.csdn.net/taoqick/article/details/37329479