College Applications and Entrance Requirements

Where do you get Flow charts for C programs?

Answer

Wiki User
10/11/2011

#include<stdio.h>

#include<conio.h>

main()

{

float a,b,c,real,imag,r1,r2,d;

int k;

printf("Enter the values of a,b,c:");

scanf("f%f",&a,&b,&c);

d=b*b-4*a*c;

if(d<0)

k=1;

else

if(d==0)

k=2;

else

k=3;

switch(k)

{

case 1:

printf("Roots are imaginary\n");

real=-b/(2*a);

d=-d;