求两个数的商
dv
VS
#include<stdio.h>
int main()
{
int a, b;
printf("请输入被除数a和除数b,用空格分隔:");
scanf("%d %d", &a, &b);
printf("%d除以%d等于%d", a, b, a / b);
return 0;
}
#include<stdio.h>
int main()
{
int a, b,c;
printf("被除数a:");
scanf_s("%d", &a);
printf("除数b:");
scanf_s("%d", &b);
c = a / b;
printf("%d除以%d等于%d", a, b, c);
return 0;
}