M miccheck412 Guest Feb 10, 2009 #1 ...gm/cm3. It sinks if it is 1 or more.? How to write c++ code for this?