#include <stdio.h>
int main(int argc, const char * argv[])
{
int x =10, y =20, b = 500;
int z = x*y;
int f = z/b;
// insert code here...
printf("x is:%d, y is:%d, b is %d\n",x,y,b);
printf("x times y is: %d\n",z);
printf("z divided by b is: %d\n",f);
return 0;
}
打印出 f = 0。为什么?