/* package whatever; // don't place package name! */
import java.util.*;
import java.lang.*;
import java.math.*;
import java.io.*;
/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
{
BigDecimal newQtd2
= newQtd.
multiply(preco
); // preco valorTotal = valorTotal.add(newQtd2);
System.
out.
println(valorTotal
); }
}
LyogcGFja2FnZSB3aGF0ZXZlcjsgLy8gZG9uJ3QgcGxhY2UgcGFja2FnZSBuYW1lISAqLwoKaW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLm1hdGguKjsKaW1wb3J0IGphdmEuaW8uKjsKCi8qIE5hbWUgb2YgdGhlIGNsYXNzIGhhcyB0byBiZSAiTWFpbiIgb25seSBpZiB0aGUgY2xhc3MgaXMgcHVibGljLiAqLwpjbGFzcyBJZGVvbmUKewoJcHVibGljIHN0YXRpYyB2b2lkIG1haW4gKFN0cmluZ1tdIGFyZ3MpIHRocm93cyBqYXZhLmxhbmcuRXhjZXB0aW9uCgl7CgkJQmlnRGVjaW1hbCB2YWxvclRvdGFsID0gbmV3IEJpZ0RlY2ltYWwoMCk7CgkJQmlnRGVjaW1hbCBwcmVjbyA9IG5ldyBCaWdEZWNpbWFsKDEwKTsKCQkKICAgICAgICBCaWdEZWNpbWFsIG5ld1F0ZCA9IG5ldyBCaWdEZWNpbWFsKDEwKTsgLy8gcXVhbnRpZGFkZQogICAgICAgIEJpZ0RlY2ltYWwgbmV3UXRkMiA9IG5ld1F0ZC5tdWx0aXBseShwcmVjbyk7IC8vIHByZWNvCiAgICAgICAgdmFsb3JUb3RhbCA9IHZhbG9yVG90YWwuYWRkKG5ld1F0ZDIpOwogICAgICAgIFN5c3RlbS5vdXQucHJpbnRsbih2YWxvclRvdGFsKTsKCX0KfQ==