Generation

generate functionTue, 22 Nov 2022

入力した数字が奇数か偶数かを判定する

hainer def odd_even(x): if x % 2 == 0: print('偶数です') else: print('奇数です') odd_even(3)

Questions about programming?Chat with your personal AI assistant