Created
July 12, 2020 04:39
-
-
Save Abhayparashar31/0c22c2d1692bf88eee345d4ae5ea0211 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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