Ad Code

Responsive Advertisement

1013 - The Greatest

Author: Ismail Hosen

Daffodil International University





Problem Link

//Please follow from main function



#include <stdio.h>


#include <stdlib.h>


#include<math.h>





int main()


{


    int a, b, c, maxAB, max;


    scanf("%d %d %d", &a, &b, &c);


    maxAB=((a+b+abs(a-b))/2);


    max=((maxAB+c+abs(maxAB-c))/2);


    printf("%d eh o maior\n", max);


    return 0;


}





Post a Comment

0 Comments