#include <stdio.h>
#include <stdlib.h>
void cal(int x,int y,int *sum,int *diff,int *mul,int *mod){
*sum=x+y;
*diff=x-y;
*mul=x*y;
*mod=x/y;
if(*diff<0){
*diff=-*diff;
}
}
int main() {
int x, y;
int sum,diff,mul,mod;
cal(x,y,&sum,&diff,&mul,&mod);
printf("和:%d\n差:%d\n積:%d\n商:%d\n",sum
,diff
,mul
,mod
);
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxzdGRsaWIuaD4gIAoKCnZvaWQgY2FsKGludCB4LGludCB5LGludCAqc3VtLGludCAqZGlmZixpbnQgKm11bCxpbnQgKm1vZCl7CiAgICAqc3VtPXgreTsgICAgICAgICAgICAgCiAgICAqZGlmZj14LXk7ICAgICAgICAKICAgICptdWw9eCp5OyAgICAgICAgICAgICAgCiAgICAqbW9kPXgveTsgICAKICAgIGlmKCpkaWZmPDApewogICAgCSpkaWZmPS0qZGlmZjsKICAgIH0KfQoKaW50IG1haW4oKSB7CiAgICBpbnQgeCwgeTsKICAgIGludCBzdW0sZGlmZixtdWwsbW9kOwogICAgc2NhbmYoIiVkIiwgJngpOwogICAgc2NhbmYoIiVkIiwgJnkpOwogICAgCiAgICBjYWwoeCx5LCZzdW0sJmRpZmYsJm11bCwmbW9kKTsKICAgIAogICAgcHJpbnRmKCLlkow6JWRcbuW3rjolZFxu56mNOiVkXG7llYY6JWRcbiIsc3VtLGRpZmYsbXVsLG1vZCk7CiAgICAKICAgIAogICAgcmV0dXJuIDA7Cn0=