You are viewing a single comment's thread. Return to all comments →
#include<bits/stdc++.h> using namespace std; void update(int a, int b) { int t1=a,t2=b; a=t1+t2; b=abs(t1-t2); cout<<a<<endl<<b; } int main() { int a=0,b=0; cin>>a>>b; update(a,b); return 0; }
Seems like cookies are disabled on this browser, please enable them to open this website
Pointer
You are viewing a single comment's thread. Return to all comments →