Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

C

Name: hello brothers 2010-12-20 14:45

hello brothers! I have not found the section of programming on this forum, pls tell me where i was wrong

main()
{
float a, b, h, Q;
const float pi = 3.1415926535;
const float e = 0.00001;
printf ("Vvedite a, Q\n");
scanf ("%f %f", &a, &Q);
if (a>=0 && a<=pi)
{
do
{
b=a-((a-sin(a)-2*pi*Q)/1-cos(a));
}
while (fabs(b-a)<e);
h=1*(1-cos(b/2));
printf ("h=%f \n", h);
}
else
{
printf("no \n");
}
printf("press any key for exit \n");
getch();
}

i'm noob sorry

Name: Anonymous 2010-12-22 6:29

const float pi = 3.1415926535;
const float e = 0.00001;


Hey guys, how do I math.h?

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List