nr1333 / python-class

0 stars 0 forks source link

Implement Quadratic function #6

Open C-Erastus opened 2 weeks ago

C-Erastus commented 2 weeks ago

Hi Naomi,

For this issues, I want you to implement the quadratic function for the code we wrote on Friday. Ask the user for the necessary requirements to implement the quadratic function.

nr1333 commented 2 weeks ago

def quadratic():

ax**2 + bx + c

a = input("enter 'a': ")
b = input("enter 'b': ")
c = input("enter 'c': ")
x = input("enter the first'x': ")
x2 = input("enter the second 'x': ")
a = int(a)
b = int(b)
c = int(c)
x = int(x)
x2 = int(x2)

calculation = ax**2 + bx + c print(calculation)

C-Erastus commented 2 weeks ago

Nice work

On Mon, Oct 28, 2024 at 4:40 PM Naomi Rizkalla @.***> wrote:

def quadratic():

ax**2 + bx + c

a = input("enter 'a': ") b = input("enter 'b': ") c = input("enter 'c': ") x = input("enter the first'x': ") x2 = input("enter the second 'x': ") a = int(a) b = int(b) c = int(c) x = int(x) x2 = int(x2)

calculation = ax**2 + bx + c print(calculation)

— Reply to this email directly, view it on GitHub https://github.com/nr1333/python-class/issues/6#issuecomment-2442583389, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIHE3OYKD2OVHAACRPGZ443Z52OKXAVCNFSM6AAAAABQWF7QX2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINBSGU4DGMZYHE . You are receiving this because you authored the thread.Message ID: @.***>