程序填空题:格式化输入[1]
执行以下程序段,输入`12-78.5`,输出`78.5-12`。
```c++
int n;
double x;
@@[scanf("%d-%lf", &n, &x)](1);
printf("%.1f-%d\n", x, n);
```
答案:
第1空:scanf("%d-%lf", &n, &x)
```c++
int n;
double x;
@@[scanf("%d-%lf", &n, &x)](1);
printf("%.1f-%d\n", x, n);
```
答案:
第1空:scanf("%d-%lf", &n, &x)