/* package whatever; // don't place package name! */
import java.util.*;
import java.lang.*;
import java.io.*;
/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
{
int minutos = 90, metros = 1500;
//exibe com as casas decimais diretas da divisão
System.
out.
println("Distância em km = "+ (metros
/1000f
));
//exibe com o numero de casas personalizados, neste caso apenas 2
System.
out.
println(String.
format("Distância em km c/ duas casas decimais = %.2f",
(metros
/1000f
)));
System.
out.
println((minutos
/60) + " horas e " + (minutos
%60
) + " minutos"); }
}
LyogcGFja2FnZSB3aGF0ZXZlcjsgLy8gZG9uJ3QgcGxhY2UgcGFja2FnZSBuYW1lISAqLwoKaW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CgovKiBOYW1lIG9mIHRoZSBjbGFzcyBoYXMgdG8gYmUgIk1haW4iIG9ubHkgaWYgdGhlIGNsYXNzIGlzIHB1YmxpYy4gKi8KY2xhc3MgSWRlb25lCnsKCXB1YmxpYyBzdGF0aWMgdm9pZCBtYWluIChTdHJpbmdbXSBhcmdzKSB0aHJvd3MgamF2YS5sYW5nLkV4Y2VwdGlvbgoJewoJCWludCBtaW51dG9zID0gOTAsIG1ldHJvcyA9IDE1MDA7CgkJCgkJLy9leGliZSBjb20gYXMgY2FzYXMgZGVjaW1haXMgZGlyZXRhcyBkYSBkaXZpc8OjbwoJCVN5c3RlbS5vdXQucHJpbnRsbigiRGlzdMOibmNpYSBlbSBrbSAgPSAiKyAobWV0cm9zLzEwMDBmKSk7CgkJCgkJLy9leGliZSBjb20gbyBudW1lcm8gZGUgY2FzYXMgcGVyc29uYWxpemFkb3MsIG5lc3RlIGNhc28gYXBlbmFzIDIKCQlTeXN0ZW0ub3V0LnByaW50bG4oU3RyaW5nLmZvcm1hdCgiRGlzdMOibmNpYSBlbSBrbSBjLyBkdWFzIGNhc2FzIGRlY2ltYWlzID0gJS4yZiIsIChtZXRyb3MvMTAwMGYpKSk7CgkJCgkJU3lzdGVtLm91dC5wcmludGxuKChtaW51dG9zLzYwKSArICIgaG9yYXMgZSAiICsgKG1pbnV0b3MlNjApICsgIiBtaW51dG9zIik7Cgl9Cn0=