#include <stdio.h>
void cal(int x,int y,int *sum,int *diff,int *mul,int *mod);
int main(void) {
int x,y,a,b,c,d;
cal(x,y,&a,&b,&c,&d);
printf("sum:%d dihh:%d mul:%d mod:%d \n",a
,b
,c
,d
);
return 0;
}
void cal(int x,int y,int *sum,int *diff,int *mul,int *mod)
{
*sum= x+y;
if(x<y){
*diff= y-x;
}
else{
*diff=x-y;
}
*mul= x*y;
*mod= x/y;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CnZvaWQgY2FsKGludCB4LGludCB5LGludCAqc3VtLGludCAqZGlmZixpbnQgKm11bCxpbnQgKm1vZCk7CgppbnQgbWFpbih2b2lkKSB7CiBpbnQgeCx5LGEsYixjLGQ7CiBwcmludGYoInggOiAiKTsgc2NhbmYoIiVkIiwmeCk7CiBwcmludGYoInkgOiAiKTsgc2NhbmYoIiVkIiwmeSk7CiBjYWwoeCx5LCZhLCZiLCZjLCZkKTsKIHByaW50Zigic3VtOiVkIGRpaGg6JWQgbXVsOiVkIG1vZDolZCBcbiIsYSxiLGMsZCk7CgogcmV0dXJuIDA7Cn0Kdm9pZCBjYWwoaW50IHgsaW50IHksaW50ICpzdW0saW50ICpkaWZmLGludCAqbXVsLGludCAqbW9kKQp7CiAgKnN1bT0geCt5OwogIGlmKHg8eSl7CiAgKmRpZmY9IHkteDsKICB9CiAgZWxzZXsKICAqZGlmZj14LXk7CiAgfQogICptdWw9IHgqeTsKICAqbW9kPSB4L3k7Cn0=