trying to simplify an algorithm

Hui Zhou zhouhui at wam.umd.edu
Thu Feb 3 06:54:37 PST 2005


Damn me!

On Thu, Feb 03, 2005 at 09:50:19AM -0500, Hui Zhou wrote:
>Something was in my mind but I forgot:
>
>On Thu, Feb 03, 2005 at 09:31:29AM -0500, Hui Zhou wrote:
>>How about :
>>if a + b + c = 360
>if a + b + c = 360 and a > 0 and b > 0 and c > 0
                shouldn't this be 180?
	
>>    if a = c || b = c || a = b
>>	if a = 60
>>	    equilateral
>>	else
>>	    isosceles
>>    else
>>	scalene
>>else
>>    not a triangle
>>
>>-- 
>>Hui Zhou
>>-- 
>>http://linuxfromscratch.org/mailman/listinfo/lfs-chat
>>FAQ: http://www.linuxfromscratch.org/faq/
>>Unsubscribe: See the above information page
>>
>
>-- 
>Hui Zhou
>-- 
>http://linuxfromscratch.org/mailman/listinfo/lfs-chat
>FAQ: http://www.linuxfromscratch.org/faq/
>Unsubscribe: See the above information page
>

-- 
Hui Zhou



More information about the lfs-chat mailing list