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