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