Answer to Question #320881 in Python for leigh

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 


1
Expert's answer
2022-03-30T07:39:46-0400
line = input()
a, b, c, d = [int(s) for s in line.split()]

det = a*d - b*c
print(det)

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS