#include <stdio.h>
int main() //
{
int x = 12;
int y = 5;
printf("/nWithout Type-Casting/n");
printf("12 // 5 = %.2f/n", x/y);
printf("/nWith Type-Casting/n");
printf("12 // 5 = %.2f/n", (float) x / (float) y);
}
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/266746.html