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