remainder=quotient%10;

问题描述:

remainder=quotient%10;

%是取余,/是除以.
比如:printf("%d",5%3);===>输出2
printf("%d",5/3);===>输出1