C
1
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
2
Name:
Anonymous
2010-12-20 14:51
const float e = 2.7182818284;
hth
3
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
4
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.
5
Name:
Anonymous
2010-12-20 14:52
h=1*(1-cos(b/2)); [sic ]
THIS IS WHY WE DON'T READ UNFORMATTED CODE
6
Name:
Anonymous
2010-12-20 14:59
7
Name:
hello brothers
2010-12-20 14:59
just tell me how to build the cycle and I'm gone
8
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>
9
Name:
Anonymous
2010-12-20 15:08
fuck html code don't work
10
Name:
hello brothers
2010-12-20 15:16
guuuuuuys pls help me, I just started learn programming
11
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){}}
12
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/
13
Name:
Anonymous
2010-12-20 15:40
14
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.
15
Name:
VIPPER
2010-12-20 15:44
God damn this fucking shit, i will consider becoming a male prostitute.
16
Name:
Anonymous
2010-12-20 16:28
Four
levels
of
autism
17
Name:
Anonymous
2010-12-21 14:25
return void
18
Name:
Anonymous
2010-12-21 14:29
19
Name:
Anonymous
2010-12-21 14:31
Reverse the polarity!
20
Name:
Anonymous
2010-12-21 14:31
21
Name:
Anonymous
2010-12-21 14:49
22
Name:
Anonymous
2010-12-21 14:57
>>21
dohohoho
an autism joke!
very original!!!!!!!!!!!!
we have a real comedian here, folks!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!
23
Name:
Anonymous
2010-12-21 16:14
>>2-22
I am planning to move foward my career with the new organization and looking for the good opportunity.
Please find my attached programming and do the needful in gaining me that opportunity.
Your help in getting me that opportunity would be very helpful and appreciated.
24
Name:
Anonymous
2010-12-22 6:29
const float pi = 3.1415926535;
const float e = 0.00001;
Hey guys, how do I math.h ?
25
Name:
Anonymous
2010-12-22 6:32
>>24
float
how do I math.h
Terrible
!