#include<stdio.h> int main() { double x1, x2, x3, x4; printf("输入2个浮点数x1,x2: "); scanf_s("%lf,%lf", &x1, &x2); printf("%lf,%lf ", x1, x2); printf("输入浮点数x3,x4: "); scanf_s("%5lf,%lf", &x3, &x4); printf("%lf,%lf "); return 0; }