Question #320881

Determinant


Given as input 4 space-separated integers a b c d, write a program to output the value ad – bc. The value of each integer is between - 10000 and 10000 


Expert's answer

line = input()
a, b, c, d = [int(s) for s in line.split()]

det = a*d - b*c
print(det)
LATEST TUTORIALS
APPROVED BY CLIENTS