#include <stdio.h>
int main() {
int number;
printf("1から100の整数を入力してください: 100 ");
if (number < 1 || number > 100) {
printf("入力は1から100の範囲内である必要があります。\n"); } else if (number % 2 == 0) {
printf("%d は偶数です。\n", number
); } else {
printf("%d は奇数です。\n", number
); }
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgbWFpbigpIHsKICAgIGludCBudW1iZXI7CiAgICAKICAgIHByaW50ZigiMeOBi+OCiTEwMOOBruaVtOaVsOOCkuWFpeWKm+OBl+OBpuOBj+OBoOOBleOBhDogMTAwICIpOwogICAgc2NhbmYoIiVkIiwgJm51bWJlcik7CiAgICAKICAgIGlmIChudW1iZXIgPCAxIHx8IG51bWJlciA+IDEwMCkgewogICAgICAgIHByaW50Zigi5YWl5Yqb44GvMeOBi+OCiTEwMOOBruevhOWbsuWGheOBp+OBguOCi+W/heimgeOBjOOBguOCiuOBvuOBmeOAglxuIik7CiAgICB9IGVsc2UgaWYgKG51bWJlciAlIDIgPT0gMCkgewogICAgICAgIHByaW50ZigiJWQg44Gv5YG25pWw44Gn44GZ44CCXG4iLCBudW1iZXIpOwogICAgfSBlbHNlIHsKICAgICAgICBwcmludGYoIiVkIOOBr+Wlh+aVsOOBp+OBmeOAglxuIiwgbnVtYmVyKTsKICAgIH0KICAgIAogICAgcmV0dXJuIDA7Cn0K