#include <stdio.h>
int main(void)
{
float fp1 = 345.678f, fp2 = 1.234E6f;
double fp3 = 234567898.0, fp4 = 11.22334455e-6;
printf("%f %+f %-10.4f %6.4f/n", fp1, fp2, fp1, fp2);
printf("%e %+E/n", fp1, fp2);
printf("%f %g %#+f %8.4f %10.4g/n", fp3,fp3, fp3, fp3, fp4);
return 0;
}
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/266444.html