int x;
int y;
int n;
printf("请输入两个整数:");
scanf_s("%d", & x);
scanf_s("%d", &y);
n = (x / y) * y + x % y;
printf("%d\n", n);
int n;
int m;
scanf_s("%d%d", &n, &m);
printf("%d%%", (n*100) /m );
标签:10.3,int,scanf,d%,printf,100 From: https://blog.51cto.com/u_15758636/5730273