#include <stdio.h>
int main() {
int number;
printf("1から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+OBoOOBleOBhDogIik7CiAgICBzY2FuZigiJWQiLCAmbnVtYmVyKTsKICAgIAogICAgaWYgKG51bWJlciA8IDEgfHwgbnVtYmVyID4gMTAwKSB7CiAgICAgICAgcHJpbnRmKCLlhaXlipvjga8x44GL44KJMTAw44Gu56+E5Zuy5YaF44Gn44GC44KL5b+F6KaB44GM44GC44KK44G+44GZ44CCXG4iKTsKICAgIH0gZWxzZSBpZiAobnVtYmVyICUgMiA9PSAwKSB7CiAgICAgICAgcHJpbnRmKCIlZCDjga/lgbbmlbDjgafjgZnjgIJcbiIsIG51bWJlcik7CiAgICB9IGVsc2UgewogICAgICAgIHByaW50ZigiJWQg44Gv5aWH5pWw44Gn44GZ44CCXG4iLCBudW1iZXIpOwogICAgfQogICAgCiAgICByZXR1cm4gMDsKfQo=