Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- include <stdio.h>
- int main()
- {
- int a,b;
- scanf("%d", &a);
- scanf("%d", &b);
- if(a==b){
- printf("%d", a*b);
- }
- else if(a<b){
- printf("%d", b-a);
- }
- else if(a>b){
- printf("%d", a-b);
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement