fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. // your code goes here
  5. int a,b;
  6. printf("请输入整数a和b:\n");
  7. scanf("%d%d",&a,&b);
  8. printf("a%b=%d\n",a%b);
  9. return 0;
  10. }
  11.  
Success #stdin #stdout 0.01s 5288KB
stdin
Standard input is empty
stdout
请输入整数a和b:
a%b=-8046