Advertisement
matheusfreitag

1013

Dec 22nd, 2014
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.23 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <math.h>
  4.  
  5. int main (){
  6.     int a, b, c, x, y;
  7.    
  8.        
  9.     scanf ("%d %d %d", &a, &b, &c);
  10.    
  11.     x = (a+b+ abs(a-b))/2;
  12.     y = (x+c+ abs(x-c))/2;
  13.    
  14.     printf ("%d eh o maior\n", y);
  15.     return 0;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement