最大值
This commit is contained in:
parent
1b88461434
commit
657ee0dbbf
|
@ -0,0 +1,13 @@
|
|||
#include <cmath>
|
||||
#include <cstdio>
|
||||
|
||||
int main()
|
||||
{
|
||||
int a, b, c;
|
||||
int max;
|
||||
scanf("%d%d%d", &a, &b, &c);
|
||||
max = (a + b + abs(a - b)) / 2;
|
||||
max = (max + c + abs(max - c)) / 2;
|
||||
printf("%d eh o maior", max);
|
||||
return 0;
|
||||
}
|
Loading…
Reference in New Issue