/* 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
{
{
BigDecimal resultDivisao
= valorInicial.
divide(contanteDivisor
).
setScale(2, RoundingMode.
HALF_EVEN);
System.
out.
println("Resultado: " + resultado
); }
}
LyogcGFja2FnZSB3aGF0ZXZlcjsgLy8gZG9uJ3QgcGxhY2UgcGFja2FnZSBuYW1lISAqLwoKaW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CmltcG9ydCBqYXZhLm1hdGguKjsKCi8qIE5hbWUgb2YgdGhlIGNsYXNzIGhhcyB0byBiZSAiTWFpbiIgb25seSBpZiB0aGUgY2xhc3MgaXMgcHVibGljLiAqLwpjbGFzcyBJZGVvbmUKewoJcHVibGljIHN0YXRpYyB2b2lkIG1haW4gKFN0cmluZ1tdIGFyZ3MpIHRocm93cyBqYXZhLmxhbmcuRXhjZXB0aW9uCgl7CgkJICAgIEJpZ0RlY2ltYWwgdmFsb3JJbmljaWFsID0gbmV3IEJpZ0RlY2ltYWwoIjg0MTAiKTsKICAgICAgICAgICAgQmlnRGVjaW1hbCBjb250YW50ZURpdmlzb3IgPSBuZXcgQmlnRGVjaW1hbCgiMTAwIik7CiAgICAgICAgICAgIEJpZ0RlY2ltYWwgcmVzdWx0RGl2aXNhbyA9IHZhbG9ySW5pY2lhbC5kaXZpZGUoY29udGFudGVEaXZpc29yKS5zZXRTY2FsZSgyLCBSb3VuZGluZ01vZGUuSEFMRl9FVkVOKTsKICAgICAgICAgICAgQmlnRGVjaW1hbCByZXN1bHRhZG8gPSByZXN1bHREaXZpc2FvLm11bHRpcGx5KG5ldyBCaWdEZWNpbWFsKCI0LjUwIikpOwoKICAgICAgICAgICAgU3lzdGVtLm91dC5wcmludGxuKCJSZXN1bHRhZG86ICIgKyByZXN1bHRhZG8pOyAKCX0KfQ==