c语言里比如5/2=2余1我想要这个结果二,有没有这个符号,还是要用其他公式
#include<stdio.h> int main() { int a=5; printf("5/2 = %d , 5/2(余数) = %d",5/2,5%2); return 0; }
直接5/2,结果就是2啊