编程题:6
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
double num1 = scanner.nextDouble();
int num2 = scanner.nextInt();
char ch = scanner.next().charAt(0);
double num3 = scanner.nextDouble();
System.out.printf("%c %d %.2f %.2f", ch, num2, num1, num3);
}
}
浙公网安备 33010602011771号