int x; int y; void main(void) { printf("First number: "); scanf("%d", &x); printf("Second number: "); scanf("%d", &y); printf("%d\n", (x+y)/2); }