블라블라




    double sum_squares(long a,long b)

    {

        double total=0;

        long i;


        for(i=a;i<=b;i++)

            total += (double)i*(double)i;


        return total;

    }


    bool bad_limits(long begin,long end,long low,long high)

    {

        bool not_good=false;


        if(begin>end)

        {

            printf("시작값은 마감값보다 크면 안 됩니다.\n");

            not_good=true;

        }

        if(begin<low||end<low)

        {

            printf("시작값과 마감값은 %d보다 크거나 같아야 합니다.\n",low);

            not_good=true;

        }

        if(begin>high||end>high)

        {

            printf("시작값과 마감값은 %ld보다 작거나 같아야 합니다.\n",high);

            not_good=true;

        }


        return not_good;

    }


return total;은 이해가 가는데 
return not_good;은 대체 왜이런거임?
너무 길어가지고 앞에부분 잘랐는데 필요하면 올릴게요 
아니면 return 자체좀 이해시켜주세요 ㅠㅠ