1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
| #include <stdio.h>
#include <conio.h>
#include <math.h>
int main()
{
int a = 351, b = 127;
int min, max;
min = ((a+b) - abs(a-b)) / 2;
max = ((a+b) + abs(a-b)) / 2;
printf("\n So lon nhat: %d", max);
printf("\n So nho nhat: %d", min);
return 0;
_getch();
}
|