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-20 14:51

const float e = 2.7182818284;

hth

Name: Anonymous 2010-12-20 14:51

Here's where you were wrong:
1. Code tags.
2. Indentation.
3. printf("press any key for exit \n"); getch();
4. Read SICP

Name: Anonymous 2010-12-20 14:51

>>1
pls tell me where i was wrong
Sure.

You were wrong when you posted here without making any effort to learn some basics of the culture.
You were wrong when you punctuated your post like a 12-year-old on a chat.
You were wrong when you posted an unindented code without [code] tags.
You were wrong when you admitted to being a noob.

All in all, read SICP.

Name: Anonymous 2010-12-20 14:52

h=1*(1-cos(b/2)); [sic]
THIS IS WHY WE DON'T READ UNFORMATTED CODE

Name: Anonymous 2010-12-20 14:59

>>3
5. WHBT

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

just tell me how to build the cycle and I'm gone

Name: Anonymous 2010-12-20 15:06

<code>
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();
          }
</code>

Name: Anonymous 2010-12-20 15:08

fuck html code don't work

Name: hello brothers 2010-12-20 15:16

guuuuuuys pls help me, I just started learn programming

Name: Anonymous 2010-12-20 15:29

>>8
we use sexpton code here:

'lolol look at me'
void main(void){}


is created via:

{code:
'lolol look at me'
void main(void){}}

Name: Anonymous 2010-12-20 15:37

>>10
Then it's a good time to stop, reconsider your actions, and start again, this time with SICP.

http://mitpress.mit.edu/sicp/

Name: Anonymous 2010-12-20 15:40

>>1
Êtes-vous français?

Name: VIPPER 2010-12-20 15:42

>>1
hello brothers!
>> I have not found the section of programming[/o]
>>> on this forum[/o]
>>>> pls[/o]
>>>>> tell me where i was wrong[/o]
.

Hello traveler. You seem unfamiliar with the concept of VIP QUALITY, can i enlighten you.

Name: VIPPER 2010-12-20 15:44

God damn this fucking shit, i will consider becoming a male prostitute.

Name: Anonymous 2010-12-20 16:28

Four
levels
of
autism

Name: Anonymous 2010-12-21 14:25

return void

Name: Anonymous 2010-12-21 14:29

Name: Anonymous 2010-12-21 14:31

Reverse the polarity!

Name: Anonymous 2010-12-21 14:31

>>19
derpderpderpderp

Name: Anonymous 2010-12-21 14:49

>>20
Shut up, autismo.

Name: Anonymous 2010-12-21 14:57

>>21
dohohoho

an autism joke!

very original!!!!!!!!!!!!

we have a real comedian here, folks!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

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