题解 | #计算带余除法#
计算带余除法
https://www.nowcoder.com/practice/34d3911bf2fd48a285f6396e886a1259
#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
int main()
{
int a = 0, b = 0;
printf("请输入两个整数a和b:");
scanf("%d %d", &a, &b);
printf("a初以b为%d\n", a / b);
printf("a 对b取余为%d\n", a % b);
return 0;
}