Kali ini saya akan membagikan cara konfersi Kilogram Ke Pound pada pemrograman java, . .
sangat gampang sekali, . . selamat mencoba, . .
public class KilogramToPound {
public static void main(String[] iriahus) {
final double KG_TO_POUND = 2.2;
System.out.println("Kilograms\tPounds");
System.out.println("----------------------");
for (int i = 0; i < 200; i++) {
System.out.printf((i + 1) + "\t\t%6.1f\n", (i + 1) * KG_TO_POUND);
}
}
}
Semoga bermanfaat, . .
0 Response to "Kilogram To Pound"
Post a Comment