#include<stdio.h>
void cal(int x, int y, int *sum, int *diff, int *mul, int *mod);
int main(){
int n1,n2,a,b,c,d;
cal(n1,n2,&a,&b,&c,&d);
printf("sum:%d diff:%d mull:%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;
if(x>y){
*diff=x-y;}
else{
*diff=y-x;}
*mul=x*y;
*mod=x/y;
}
I2luY2x1ZGU8c3RkaW8uaD4KCnZvaWQgY2FsKGludCB4LCBpbnQgeSwgaW50ICpzdW0sIGludCAqZGlmZiwgaW50ICptdWwsIGludCAqbW9kKTsKaW50IG1haW4oKXsKCQoJaW50IG4xLG4yLGEsYixjLGQ7CglzY2FuZigiJWQiLCAmbjEpOwoJc2NhbmYoIiVkIiwgJm4yKTsKCWNhbChuMSxuMiwmYSwmYiwmYywmZCk7CglwcmludGYoInN1bTolZCBkaWZmOiVkIG11bGw6JWQgbW9kOiVkIixhLGIsYyxkKTsKCXJldHVybiAwOwp9CnZvaWQgY2FsKGludCB4LCBpbnQgeSwgaW50ICpzdW0sIGludCAqZGlmZiwgaW50ICptdWwsIGludCAqbW9kKXsKCSpzdW09eCt5OwoJaWYoeD55KXsKCQkqZGlmZj14LXk7fQoJCWVsc2V7CgkJCSpkaWZmPXkteDt9CgkJCgkqbXVsPXgqeTsKCSptb2Q9eC95Owp9Cgo=