kaki meteran

Selamat pagi, kali ini saya akan membagikan cara feet to meter  pada pemrograman java.


import java.util.Scanner;

public class FeetToMeter {

public static void main(String[] iriahus) {
final double FEET_TO_METER = 0.305;

@SuppressWarnings("resource")
Scanner s = new Scanner(System.in);

System.out.print("Enter a value for feet: ");
double feet = s.nextDouble();

double meter = feet * FEET_TO_METER;
System.out.println(feet + " feet is " + meter + " meters");
}

}

Silahkan di coba dimanapun kalian berada dan jangan lupa berdoa sebelum mencoba

Thank for visiting.

Subscribe to receive free email updates:

0 Response to "kaki meteran"

Post a Comment