Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- int main()
- {
- int a, b, p, sum, max;
- scanf("%d %d %d",&a, &b, &p);
- sum = ((a + b +abs(a - b))/2);
- max = ((sum + p +abs(sum - p))/2);
- printf("%d eh o maior\n",max);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement