Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Abhayparashar31/0c22c2d1692bf88eee345d4ae5ea0211 to your computer and use it in GitHub Desktop.
Save Abhayparashar31/0c22c2d1692bf88eee345d4ae5ea0211 to your computer and use it in GitHub Desktop.
#include <iostream>
using namespace std;
void update(int m,int n)
{
int c,d;
c=m+n;
d=m-n;
d=abs(d);
cout<<c<<"\n";
cout<<d;
}
int main()
{
int a,b;
cin>>a>>b;
update(a,b);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment