import java.util.Scanner;
class MileConversionsInteractive
{
public static void main
(String[] args
) {
//Number of miles
int miles;
//Named Constants
final int INCHES_TO_MILES = 63360;
final int FEET_TO_MILES = 5280;
final int YARDS_IN_MILES = 1760;
//Interactive
Scanner scanner
= new Scanner
(System.
in);
//Input
System.
out.
print("Input how many miles: "); miles = scanner.nextInt();
//Conversions
int totalYards = miles * YARDS_IN_MILES;
int totalFeet = miles * FEET_TO_MILES;
int totalInches = miles * INCHES_TO_MILES;
//Explanatory Text
System.
out.
println("There is " + miles
+ " mile(s), which is equalivent to:"); System.
out.
println(totalYards
+ " yards"); System.
out.
println(totalFeet
+ " feet"); System.
out.
println(totalInches
+ " inches");
}
}
aW1wb3J0IGphdmEudXRpbC5TY2FubmVyOwoKY2xhc3MgTWlsZUNvbnZlcnNpb25zSW50ZXJhY3RpdmUgCnsKCXB1YmxpYyBzdGF0aWMgdm9pZCBtYWluKFN0cmluZ1tdIGFyZ3MpIAogICAgewogICAgCS8vTnVtYmVyIG9mIG1pbGVzCiAgICAgICAgaW50IG1pbGVzOwoKICAgICAgICAvL05hbWVkIENvbnN0YW50cwogICAgICAgIGZpbmFsIGludCBJTkNIRVNfVE9fTUlMRVMgPSA2MzM2MDsKICAgICAgICBmaW5hbCBpbnQgRkVFVF9UT19NSUxFUyA9IDUyODA7CiAgICAgICAgZmluYWwgaW50IFlBUkRTX0lOX01JTEVTID0gMTc2MDsKICAgICAgICAKICAgICAgICAvL0ludGVyYWN0aXZlIAogICAgICAgIFNjYW5uZXIgc2Nhbm5lciA9IG5ldyBTY2FubmVyKFN5c3RlbS5pbik7CiAgICAgICAgCiAgICAgICAgLy9JbnB1dAogICAgICAgIFN5c3RlbS5vdXQucHJpbnQoIklucHV0IGhvdyBtYW55IG1pbGVzOiAiKTsKICAgICAgICBtaWxlcyA9IHNjYW5uZXIubmV4dEludCgpOwoKICAgICAgICAvL0NvbnZlcnNpb25zCiAgICAgICAgaW50IHRvdGFsWWFyZHMgPSBtaWxlcyAqIFlBUkRTX0lOX01JTEVTOwogICAgICAgIGludCB0b3RhbEZlZXQgPSBtaWxlcyAqIEZFRVRfVE9fTUlMRVM7CiAgICAgICAgaW50IHRvdGFsSW5jaGVzID0gbWlsZXMgKiBJTkNIRVNfVE9fTUlMRVM7CgogICAgICAgIC8vRXhwbGFuYXRvcnkgVGV4dAogICAgICAgIFN5c3RlbS5vdXQucHJpbnRsbigiVGhlcmUgaXMgIiArIG1pbGVzICsgIiBtaWxlKHMpLCB3aGljaCBpcyBlcXVhbGl2ZW50IHRvOiIpOwogICAgICAgIFN5c3RlbS5vdXQucHJpbnRsbih0b3RhbFlhcmRzICsgIiB5YXJkcyIpOwogICAgICAgIFN5c3RlbS5vdXQucHJpbnRsbih0b3RhbEZlZXQgKyAiIGZlZXQiKTsKICAgICAgICBTeXN0ZW0ub3V0LnByaW50bG4odG90YWxJbmNoZXMgKyAiIGluY2hlcyIpOwogICAgICAKICAgIH0KfQ==