#include<stdio.h>int main(){double x1, x2, x3, x4;printf("输入2个浮点数x1,x2:\n");scanf_s("%lf,%lf", &x1, &x2);printf("%lf,%lf\n", x1, x2);printf("输入浮点数x3,x4:\n");scanf_s("%5lf,%lf", &x3, &x4);printf("%lf,%lf\n");return 0;}
700字范文,内容丰富有趣,生活中的好帮手!
时间:2018-07-29 11:25:30
#include<stdio.h>int main(){double x1, x2, x3, x4;printf("输入2个浮点数x1,x2:\n");scanf_s("%lf,%lf", &x1, &x2);printf("%lf,%lf\n", x1, x2);printf("输入浮点数x3,x4:\n");scanf_s("%5lf,%lf", &x3, &x4);printf("%lf,%lf\n");return 0;}