Java
1
2
3
4
5
6
7
8
9
10
|
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
System.out.print("yard? ");
double num = sc.nextDouble();
System.out.printf("%.1fyard = %.1fcm", num, num*91.44);
}
}
|
cs |