0

Hi. I'm new to C, so I have probably made an elementary mistake in my code.

I am trying to make a program for finding roots of a quadratic equation, using if and else, but first I'm trying to get used to using the sscanf function which I have never encountered before. After compiling I am getting an error in line 12: parse error before string constant

Can anybody shed some light on this for me please?

Heres my program:

```
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
int a, b, c;
float real_root;
int main (int argc, char* argv[])
{
printf ("Enter the co-efficients a, b, and c : ");
sscanf (argv[1] "%d %d %d", &a, &b, &c);
real_root = (b*b)+4*a*c;
if (real_root < 0)
{
printf("No Real Roots\n");
return (0);
}
}
```