3、
#include<stdio.h>
void main()
{
int a=100;
float b=3.14f;
char c='C';
printf("浮点数是%f\n",b);
printf("整数是%d\n",a);
printf("字母是%c\n",c);
}
4、
#include<stdio.h>
void main()
{
float a=3.1415f;
printf("是%d\n",a);
}
5、
#include<stdio.h>
void main()
{
char b='%';
printf("浮点数是14.3%c\n",b);
}
6、
#include<stdio.h>
void main()
{
int a=1;
float b=3.14f;
char c='C';
printf("浮点数是%f\n",b);
printf("整数是%d\n",a);
printf("字母是%c\n",c);
}