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