You are viewing a single comment's thread. Return to all comments →
int main(){ int a,b; scanf("%d %d", &a,&b); int sum, diff; sum = a+b; if(a>b){ diff=a-b; } else { diff=b-a; }
printf("%i\n%i", sum, diff);
}
Seems like cookies are disabled on this browser, please enable them to open this website
Pointers in C
You are viewing a single comment's thread. Return to all comments →
include
int main(){ int a,b; scanf("%d %d", &a,&b); int sum, diff; sum = a+b; if(a>b){ diff=a-b; } else { diff=b-a; }
}