Chapter 1 -2 keyboard input to the three numbers a, b, c, the output value according to the formula python

Sequentially input in the same row three values a, b, c, separated by spaces, the output B B. 4- A C * value

Input format:
Input number of three in a row.

Output format:
output value of the formula in a row.

Sample input:
Here is given a set of inputs. For example:
345

Output Sample:
In the given here corresponding output. For example:
-44

a,b,c=input().split()
a=int(a)
b=int(b)
c=int(c)
d=b*b-4*a*c
print(d)
Published 14 original articles · won praise 1 · views 99

Guess you like

Origin blog.csdn.net/weixin_45948920/article/details/104345255