#include <stdio.h>
int main() {
int num1, num2;
printf("กรอกจำนวนเต็มสองจำนวน: "); scanf("%d %d", &num1
, &num2
); int sum = num1 + num2;
float average = sum / 2.0;
printf("ค่าเฉลี่ย: %.2f\n", average
); return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgbWFpbigpIHsKICAgIGludCBudW0xLCBudW0yOwogICAgcHJpbnRmKCLguIHguKPguK3guIHguIjguLPguJnguKfguJnguYDguJXguYfguKHguKrguK3guIfguIjguLPguJnguKfguJk6ICIpOwogICAgc2NhbmYoIiVkICVkIiwgJm51bTEsICZudW0yKTsKICAgIGludCBzdW0gPSBudW0xICsgbnVtMjsKICAgIGZsb2F0IGF2ZXJhZ2UgPSBzdW0gLyAyLjA7CiAgICBwcmludGYoIuC4nOC4peC4o+C4p+C4oTogJWRcbiIsIHN1bSk7CiAgICBwcmludGYoIuC4hOC5iOC4suC5gOC4ieC4peC4teC5iOC4ojogJS4yZlxuIiwgYXZlcmFnZSk7CiAgICByZXR1cm4gMDsKfSAK