#include main() { int a; int b; float fa; float fb; int wa; int sa; int seki; int shou; float fshou; a=255; b=16; wa=a+b; sa=a-b; seki=a*b; shou = a/b;/*割り算した時点で、既に切り捨て。*/ fa=a; fb=b; fshou =fa/fb; printf("wa=%d sa=%d seki=%d shou=%d\n",wa,sa,seki,shou); printf("fshou=%f\n",fshou); printf("%= %f\n", 254.0 % 3.0); fshou= (float)a/b; printf("castした場合:fshou=%f\n",fshou); }