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)
;
)
;
Chat with our AI personalities
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.