#include <stdio.h>
#include <stdlib.h>
int main() {
int a = 10;
int b = 20;
int ret = 0;
ret = (a&b) + (a^b) >> 1;
printf("%d\n", ret);
system("pause");
}
#include <stdio.h>
#include <stdlib.h>
int main() {
int a = 10;
int b = 20;
int ret = 0;
ret = (a&b) + (a^b) >> 1;
printf("%d\n", ret);
system("pause");
}