# 二階行列式計算機

print('二階行列式計算機\n| a1 a2 |\n| b1 b2 |')

a1 = int(input("請輸入 a1: "))
a2 = int(input("請輸入 a2: "))
b1 = int(input("請輸入 b1: "))
b2 = int(input("請輸入 b2: "))

print("A: ", (a1 * b2) - (a2 * b2 ))

Add a code snippet to your website: www.paste.org