Advertisement
PedroSG

Untitled

Apr 7th, 2015
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.24 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. int main()
  4. {
  5.     int a,b,c,MaiorAB,MaiorABC;
  6.     scanf("%d %d %d",&a,&b);
  7.     MaiorAB = (a+b+abs(a-b))/2;
  8.     MaiorABC = (MaiorAB+c+abs(MaiorAB-c))/2;
  9.     printf("%d eh o maior",MaiorABC);
  10.  
  11.  
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement