/* package whatever; // don't place package name! */
import java.util.* ;
import java.lang.* ;
import java.io.* ;
import java.math.* ;
/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
private static final int SCALE = 2 ;
public static void main
( String [ ] args
) { new Ideone( ) .run ( ) ;
}
private void run( ) {
System .
out .
println ( hundredLbs
+ " pounds is " + poundsToKilos
( hundredLbs
) + " kilos and converts back to " + kilosToPounds
( poundsToKilos
( hundredLbs
) ) + " pounds." ) ; System .
out .
println ( hundredInches
+ " inches is " + inchesToMeters
( hundredInches
) + " meters and converts back to " + metersToInches
( inchesToMeters
( hundredInches
) ) + " inches." ) ; }
}
}
}
return pounds.
multiply ( new BigDecimal ( 0.453592370010035 ) ) .
setScale ( SCALE,
BigDecimal .
ROUND_HALF_UP ) ; }
}
LyogcGFja2FnZSB3aGF0ZXZlcjsgLy8gZG9uJ3QgcGxhY2UgcGFja2FnZSBuYW1lISAqLwoKaW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CmltcG9ydCBqYXZhLm1hdGguKjsKCi8qIE5hbWUgb2YgdGhlIGNsYXNzIGhhcyB0byBiZSAiTWFpbiIgb25seSBpZiB0aGUgY2xhc3MgaXMgcHVibGljLiAqLwpjbGFzcyBJZGVvbmUKewpwcml2YXRlIHN0YXRpYyBmaW5hbCBpbnQgU0NBTEUgPSAyOwoKICAgIHB1YmxpYyBzdGF0aWMgdm9pZCBtYWluKFN0cmluZ1tdIGFyZ3MpIHsKICAgICAgICBuZXcgSWRlb25lKCkucnVuKCk7CiAgICB9CgogICAgcHJpdmF0ZSB2b2lkIHJ1bigpIHsKICAgICAgICBCaWdEZWNpbWFsIGh1bmRyZWRMYnMgPSBuZXcgQmlnRGVjaW1hbCgxMDAuMDApOwogICAgICAgIEJpZ0RlY2ltYWwgaHVuZHJlZEluY2hlcyA9IG5ldyBCaWdEZWNpbWFsKDEwMC4wMCk7CgogICAgICAgIFN5c3RlbS5vdXQucHJ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