#include<stdio.h>
void main()
{
double f1=2e+8;
double f2=3.14159;
printf(“输出各种格式的数据:\n”);
printf("%%f,%f\n",f1);
printf("%%e,%e\n",f1);
printf("%%g,%g\n",f1);
printf("%%f,%f\n",f2);
printf("%%e,%e\n",f2);
printf("%%g,%g\n",f2);
}
void main()
{
double f1=2e+8;
double f2=3.14159;
printf(“输出各种格式的数据:\n”);
printf("%%f,%f\n",f1);
printf("%%e,%e\n",f1);
printf("%%g,%g\n",f1);
printf("%%f,%f\n",f2);
printf("%%e,%e\n",f2);
printf("%%g,%g\n",f2);
}