hi, i was writing a c program for my class assignment, and i got stuck. i paste it below.
it appears to me that the program structure is ok, but when i run it, it does'nt give any output. i have also tried by taking the last 'printf' statement out of the for loop, but then the out put is not what i expected. it prints the value of x as -10 continously 50 times. ./*This program calculates the roots of the equation x^3-3x^2+5x-10=0
by two separate methods, Bisection method and Newton-Rhapson method*/
printf("Choose the method you want to use\n");
printf("Enter the range within which the calculation is to be carried out : ");
scanf("%f %f", &x1, &x2);
printf("Iteration %d : x = %f \n", count, x0);
printf("\nThe required root of the equation is %f", x1);