human
Can you provide a code to roots of the quadratic equation when a + b + c = 0 without using Shridharacharya formula and the other steps required given the following:
Roots of the quadratic equation when a + b + c = 0 without using Shridharacharya formula | Function to print the roots of the quadratic equation when a + b + c = 0.
Driver code"
Solution in Python:
assistant
#Here is code to roots of the quadratic equation when a + b + c = 0 without using Shridharacharya formula and the other steps required.
 def printRoots ( a , b , c ) :
	print ( 1 , " , " , c / ( a * 1.0 ) )
a = 2
b = 3
c = - 5
printRoots ( a , b , c )