#include<stdio.h> void main() { int a,b,c,d; printf("请任意输入两个整数:"); scanf("%d%d", &a, &b); c = a / b; d = a - b * c; printf("%d与%d的商为%d\n", a, b, c); printf("%d与%d的余数为%d", a, b, d); }