#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 %d\n", result1
); printf("ข้อ 2 %.2f\n", result2
); printf("ข้อ 3 %.2f\n", result3
); printf("ข้อ 4 %d\n", result4
);
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgbWFpbigpIHsKICAgIGludCByZXN1bHQxID0gNSArIDcgKiAyIC0gNjsKICAgIGZsb2F0IHJlc3VsdDIgPSAyICogNSAvIDIgKyA1IC8gMi4wOwogICAgZmxvYXQgcmVzdWx0MyA9IDI1IC8gNC4wIC0gMiAqIDMuMDsKICAgIGludCByZXN1bHQ0ID0gNTYgJSA2OwoKICAgIHByaW50Zigi4LiC4LmJ4LitIDEgJWRcbiIsIHJlc3VsdDEpOwogICAgcHJpbnRmKCLguILguYnguK0gMiAlLjJmXG4iLCByZXN1bHQyKTsKICAgIHByaW50Zigi4LiC4LmJ4LitIDMgJS4yZlxuIiwgcmVzdWx0Myk7CiAgICBwcmludGYoIuC4guC5ieC4rSA0ICVkXG4iLCByZXN1bHQ0KTsKCiAgICByZXR1cm4gMDsKfSAK