Mode:
Duration:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#include <stdio.h>
#define PI 3.14
#define SQUARE(x) ((x) * (x))
#define DEBUG 1
int main() {
int r = 5;
int area;
area = PI * SQUARE(r);
printf("Area = %.2f\n", area);
#ifdef DEBUG
printf("Debug mode is ON\n");
#endif
#if DEBUG == 1
printf("Conditional compilation active\n");
#endif
return 0;
}Coding works best on desktop or with an external keyboard.