PTA-基础编程题目集-7-6 混合类型数据格式化输入
题目来源:https://pintia.cn/problem-sets/14/problems/786


1 #include<stdio.h> 2 int main(){ 3 float a,d; 4 int b; 5 char c; 6 scanf("%f %d %c %f",&a,&b,&c,&d); 7 printf("%c %d %.2f %.2f",c,b,a,d); 8 return 0; 9 }
题目来源:https://pintia.cn/problem-sets/14/problems/786


1 #include<stdio.h> 2 int main(){ 3 float a,d; 4 int b; 5 char c; 6 scanf("%f %d %c %f",&a,&b,&c,&d); 7 printf("%c %d %.2f %.2f",c,b,a,d); 8 return 0; 9 }