根据所提供的宏定义，编写一个程序来计算两个数的平均值。


#define A 10
#define B 20
```
#define A 10
#define B 20

#include <stdio.h>

int main() {
    int average = (A + B) / 2;
    printf("The average of %d and %d is %d", A, B, average);
    return 0;
}
```