void main(int argc, char* argv[])
{
double a = 4.5;
printf("=>>>> below is the example for printf 4.5
");
printf("%%e %e
",a);
printf("%%f %f
",a);
printf("%%g %g
",a);
printf("%%E %E
",a);
printf("%%F %F
",a);
printf("%%G %G
",a);
double b = 1.79e308;
printf("=>>>> below is the exbmple for printf 1.79*10^308
");
printf("%%e %e
",b);
printf("%%f %f
",b);
printf("%%g %g
",b);
printf("%%E %E
",b);
printf("%%F %F
",b);
printf("%%G %G
",b);
double d = 2.25074e-308;
printf("=>>>> below is the example for printf 2.25074*10^-308
");
printf("%%e %e
",d);
printf("%%f %f
",d);
printf("%%g %g
",d);
printf("%%E %E
",d);
printf("%%F %F
",d);
printf("%%G %G
",d);
}
=>>>> below is the example for printf 4.5
%e 4.500000e+00
%f 4.500000
%g 4.5
%E 4.500000E+00
%F 4.500000
%G 4.5
=>>>> below is the exbmple for printf 1.79*10^308
%e 1.790000e+308
%f 178999999999999996376899522972626047077637637819240219954027593177370961667659291027329061638406108931437333529420935752785895444161234074984843178962619172326295244262722141766382622299223626438470088150218987997954747866198184686628013966119769261150988554952970462018533787926725176560021258785656871583744.000000
%g 1.79e+308
%E 1.790000E+308
%F 178999999999999996376899522972626047077637637819240219954027593177370961667659291027329061638406108931437333529420935752785895444161234074984843178962619172326295244262722141766382622299223626438470088150218987997954747866198184686628013966119769261150988554952970462018533787926725176560021258785656871583744.000000
%G 1.79E+308
=>>>> below is the example for printf 2.25074*10^-308
%e 2.250740e-308
%f 0.000000
%g 2.25074e-308
%E 2.250740E-308
%F 0.000000
%G 2.25074E-308