main(
)
i=
1
;
x0,
x1,
x2;
f1,
f2,
f0,
t;
)
;
"\n
Enter the value of x0: "
)
;
"%f"
,&
x0)
;
"\n
Enter the value of x1: "
)
;
"%f"
,&
x1)
;
"\n
____________________________________________\n
"
)
;
"\n
iteration\t
x0\t
x1\t
x2\t
f0\t
f1\t
f2"
)
;
"\n
_____________________________________________\n
"
)
;
(
x0+
x1)
/
2
;
F(
x0)
;
F(
x1)
;
F(
x2)
;
"\n
%d %f %f %f %lf %lf %lf"
,
i,
x0,
x1,
x2,
f0,
f1,
f2)
;
(
f0*
f2<
0
)
x2;
x2;
while
(
fabs(
f2)
>
ESP)
;
"\n
________________________________________\n
"
)
;
"\n
\n
App.root = %f"
,
x2)
;
)
;
try this---> http://c-pgms.blogspot.com/2008/08/program-to-find-meanmedianand-mode_22.html
program to find maximum of two numbers using pointers
Yes, do write. That's what you always have to do when you have got a homework-program.
Did you know that memory allocation is not needed to display the matrix? However, the C program is to find the sum of all the elements.
Learn c programming and geometry. It will be easy when you know both.
find the program in c-pgms.blogspot.com
Copy and paste is the most common method.
Every program requires an entry point. Main() provides the entry point in C.
Calculate the midpoint � = � � 2 c= 2 a+b . Evaluate � ( � ) f(c). Determine the sign of � ( � ) f(c). If � ( � ) = 0 f(c)=0, you've found the root. If � ( � ) f(c) has the same sign as � ( � ) f(a), set � = � a=c. If � ( � ) f(c) has the same sign as � ( � ) f(b), set � = � b=c
For first find an example program.
find the area of abc a[2,3] c[6,0]
try this---> http://c-pgms.blogspot.com/2008/08/program-to-find-meanmedianand-mode_22.html
find median of n observation in c program
in BGIDEMO.C, part of TurboC
Write a c program to compute the surface area and volume of a cube
Write a simple program in finding roots x^3-6x^2+11x-6.1=0
program to find maximum of two numbers using pointers