Wikipedia has an article on triangle numbers. At the very bottom, they give a formula for testing if a number is a triangle number. If it comes out as a whole integer, it is a triangle. If it comes out with numbers right of the decimal, it is NOT. The same idea would apply for a square root. If I placed a number in the square root sign, and it came out a whole integer, it's a square number. If it has numbers right of that decimal point, it ain't.

My forum http://forums.delphiforums.com/figurate/start also goes into more details.]]>

http://forums.delphiforums.com/figurate/start]]>

Why? Because if you take some length x, x*x is the area of a square and x*x*x is the area of a cube.

]]>PS:- The forum you host is quite interesting.

]]>Have a great week.:)]]>