Hi, so im trying to write a program in C that solves for the 2 roots of a quadratic equation.

However I keep getting these errors:

cpp(13) : error C2064: term does not evaluate to a function taking 1 arguments

cpp(14) : error C2064: term does not evaluate to a function taking 1 arguments

My code is...

Code:#include <stdio.h> int main() { int a,b,c,d,sqrt; float root1,root2; printf("Enter A:"); scanf("%d%d%d",&a); printf("Enter B:"); scanf("%d",&b); printf("Enter B:"); scanf("%d",&c); d=b*b-4*a*c; root1=((-b)+sqrt(d))/(2*a); root2=((-b)-sqrt(d))/(2*a); printf("root1=%f & root2=%f",root1,root2); }

BTW, Line 13 and 14 are the ones with the "root1=((-b)+sqrt...etc"

So, can someone please help me with what is wrong?

Thanks