d1_if.py

プログラム一覧に戻る

a = 123 ** 4 - 9876 ** 2

if a > 0:
    print(a, "is positive.")
elif a == 0:
    print(a, "is equal to zero.")
else:
    print(a, "is negative.")