输入输出和整数运算.c 209 B

1234567891011121314
  1. #include <stdio.h>
  2. int main() {
  3. int a,b;
  4. scanf("%d %d",&a,&b);
  5. printf("%d+%d=%d\n",a,b,a+b);
  6. printf("%d*%d=%d\n",a,b,a*b);
  7. printf("%d/%d=%d\n",a,b,a/b);
  8. printf("%d%%%d=%d\n",a,b,a%b);
  9. return 0;
  10. }