Roots of the quadratic equation when a + b + c = 0 without using Shridharacharya formula | C # implementation of the approach ; Function to print the roots of the quadratic equation when a + b + c = 0 ; Driver code
using System ; class GFG { static void printRoots ( long a , long b , long c ) { Console . WriteLine ( "1 , ▁ " + c / ( a * 1.0 ) ) ; } public static void Main ( ) { long a = 2 ; long b = 3 ; long c = - 5 ; printRoots ( a , b , c ) ; } }