hi sire,
there seems to be an extra ( in the 'if' line.
think rectifying that should solve ur issue.
one more small observation.
from personal
experience i can tell an aligned piece of code makes it easier
to read and even detect possible errors.
#include<stdio.h>
int main()
{
int a,b,c;
printf("They are bidagelasi numbers\n");
for(a = 0;a <= 500;++ a)
{
for(b = 0; b <= 500;++ b)
{
for(c = 0;c < 500;++ c)
{
if((a * a == c * c + b * b)
{ /* dont
need these brackets. its a one line code in the if block
printf("The three numbers are :
%d%d%d\n",a,b,c);
} /* dont
need these brackets. its a one line code in the if block
}
}
}
return 0;
}
warms regards
hulk
---------------------------------------------------------------------------------------------
On 10/30/07, 赵鹏飞 <[EMAIL PROTECTED]> wrote:
>
> #include<stdio.h>
> int main()
> {
> int a,b,c;
> printf("They are bidagelasi numbers\n");
>
> for(a = 0;a <= 500;++ a){
> for(b = 0; b <= 500;++ b){
>
> for(c = 0;c < 500;++ c){
> if((a * a == c * c + b * b){
> printf("The three numbers are : %d%d%d\n",a,b,c);
> }
>
> }
>
> }
> }
> return 0;
> }
>
>
>
> I write the programme like this ,but when I complie it ,the computer thell
> me
> error in function'main'
> parse error before '{'
> At top level:
> parse error before'return'
>
> Please help solve this problem,tell me how to correct it
> And other question is what's the meaning of "At top level"
>
> Hoping to your response,thank you.
>
> ---------------------------------
> 雅虎邮箱,终生伙伴!
>
> [Non-text portions of this message have been removed]
>
>
>
[Non-text portions of this message have been removed]