d1_basic_operations.py

プログラム一覧に戻る

print("5 plus 11 is", 5 + 11)
print("5 minus 11 is", 5 - 11)
print("5 times 11 is", 5 * 11)
print("5 divided by 11 is", 5 / 11)  # 通常の割り算
print("Floor division of 5 by 11 is", 5 // 11)  # 割り算の商
print("Remainder from the division of 5 by 11 is", 5 % 11)  # 割り算の余り
print("5 to the 11th is", 5 ** 11)