#include <stdio.h>
#include <math.h>
int main()
{
int shou_int;
double x=5.6, y=0.8, shou, amari;
shou = x / y;
shou_int = (int)shou;
amari = fmod(x, y);
printf("商の結果は・・・%.15f\n",shou);
printf("商の整数は・・・%d\n",shou_int);
printf("あまりの結果は・・・%.15f\n",amari);
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxtYXRoLmg+CgppbnQgbWFpbigpCnsKICAgIGludCBzaG91X2ludDsKICAgIGRvdWJsZSB4PTUuNiwgeT0wLjgsIHNob3UsIGFtYXJpOwoKICAgIHNob3UgPSB4IC8geTsKICAgIHNob3VfaW50ID0gKGludClzaG91OwogICAgYW1hcmkgPSBmbW9kKHgsIHkpOwoKICAgIHByaW50Zigi5ZWG44Gu57WQ5p6c44Gv44O744O744O7JS4xNWZcbiIsc2hvdSk7CiAgICBwcmludGYoIuWVhuOBruaVtOaVsOOBr+ODu+ODu+ODuyVkXG4iLHNob3VfaW50KTsKICAgIHByaW50Zigi44GC44G+44KK44Gu57WQ5p6c44Gv44O744O744O7JS4xNWZcbiIsYW1hcmkpOwoKICAgIHJldHVybiAwOwp9Cg==