#include <stdio.h>
int main() {
int result1 = 5 + 7 * 2 - 6;
float result2 = 2 * 5 / 2 + 5 / 2.0;
float result3 = 25 / 4.0 - 2 * 3.0;
int result4 = 56 % 6;
printf("ผลลัพธ์ของข้อ 1.1: %d\n", result1
); printf("ผลลัพธ์ของข้อ 1.2: %.2f\n", result2
); printf("ผลลัพธ์ของข้อ 1.3: %.2f\n", result3
); printf("ผลลัพธ์ของข้อ 1.4: %d\n", result4
);
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgbWFpbigpIHsKICAgIGludCByZXN1bHQxID0gNSArIDcgKiAyIC0gNjsKICAgIGZsb2F0IHJlc3VsdDIgPSAyICogNSAvIDIgKyA1IC8gMi4wOwogICAgZmxvYXQgcmVzdWx0MyA9IDI1IC8gNC4wIC0gMiAqIDMuMDsKICAgIGludCByZXN1bHQ0ID0gNTYgJSA2OwoKICAgIHByaW50Zigi4Lic4Lil4Lil4Lix4Lie4LiY4LmM4LiC4Lit4LiH4LiC4LmJ4LitIDEuMTogJWRcbiIsIHJlc3VsdDEpOwogICAgcHJpbnRmKCLguJzguKXguKXguLHguJ7guJjguYzguILguK3guIfguILguYnguK0gMS4yOiAlLjJmXG4iLCByZXN1bHQyKTsKICAgIHByaW50Zigi4Lic4Lil4Lil4Lix4Lie4LiY4LmM4LiC4Lit4LiH4LiC4LmJ4LitIDEuMzogJS4yZlxuIiwgcmVzdWx0Myk7CiAgICBwcmludGYoIuC4nOC4peC4peC4seC4nuC4mOC5jOC4guC4reC4h+C4guC5ieC4rSAxLjQ6ICVkXG4iLCByZXN1bHQ0KTsKCiAgICByZXR1cm4gMDsKfSAK