#include <stdio.h>
void cal(int x, int y,int *add,int *sub);
int main(void) {
// your code goes here
int n1,n2,a,b;
cal(n1,n2,&a,&b);
printf("*add : %d, *sub : %d\n",a
,b
); return 0;
}
void cal(int x,int y,int *add,int *sub){
*add=x+y;
*sub=x-y;
}
I2luY2x1ZGUgPHN0ZGlvLmg+Cgp2b2lkIGNhbChpbnQgeCwgaW50IHksaW50ICphZGQsaW50ICpzdWIpOwppbnQgbWFpbih2b2lkKSB7CgkvLyB5b3VyIGNvZGUgZ29lcyBoZXJlCglpbnQgbjEsbjIsYSxiOwoJCglzY2FuZigiJWQiLCZuMSk7cHJpbnRmKCJuMSA6ICVkICIsbjEpOwoJc2NhbmYoIiVkIiwmbjIpO3ByaW50ZigibjIgOiAlZCBcbiIsbjIpOwoJY2FsKG4xLG4yLCZhLCZiKTsKCXByaW50ZigiKmFkZCA6ICVkLCAqc3ViIDogJWRcbiIsYSxiKTsKCXJldHVybiAwOwp9CnZvaWQgY2FsKGludCB4LGludCB5LGludCAqYWRkLGludCAqc3ViKXsKCSphZGQ9eCt5OwoJKnN1Yj14LXk7Cn0=