Code:
#include<stdio.h>
#include<stdlib.h>
#include<math.h>

void main(void)
{
	
	//Declaration
	double v_a,v_b,v_c,discriminant,root_1,root_2,sq_d;
	
	
	//Input
	printf("Enter a, b, c : ");
	scanf("%lf %lf %lf",&v_a,&v_b,&v_c);
	
	
	//Calculation
	discriminant = (pow(v_b,2))-(4*v_a*v_c); 
	sq_d = sqrt(discriminant);
	root_1 = (-v_b+sq_d)/(2*v_a);
   	root_2 = (-v_b-sq_d)/(2*v_a);   
	
	
	if (discriminant >= 0)
	{
		printf("\na=%f  b=%f  c=%f\n",v_a,v_b,v_c);
		printf("\nThe roots are %.2f and %.2f\n",root_1,root_2);
	}
	else
	{
		printf("a=%f  b=%f  c=%f\nd = %f\n",v_a,v_b,v_c,discriminant);
		printf("\nThe roots are complex.\n");
	}
	
	exit(0);
}   //End main
The above program works fine but there is a INDENTATION ERROR when marking with online marking system......