- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
#include <stdio.h>
unsigned int mid (unsigned int a, unsigned int b)
{
if (a > b) {unsigned int c = a; a = b; b = c;}
for(; a < b; a--, b++) {;};
return a;
}
int main(void) {
printf("%u %u %u %u", mid(2,2), mid(3,2), mid(2,3), mid(3,3));
return 0;
}