4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-01-15 02:09:19 +08:00

21 lines
387 B
C
Raw Normal View History

2000-03-17 22:48:54 +00:00
#include <stdio.h>
main()
{
float a,b,c;
a = 0.11;
b = 3.12;
c = a+b;
printf ("Print float, result with 'f' = %f\n", c);
printf ("Print float, result with 'e' = %e\n", c);
printf ("Print float, result with 'E' = %E\n", c);
printf ("Print float, result with 'g' = %g\n", c);
printf ("Print float, result with 'G' = %G\n", c);
pass ("float");
fflush (stdout);
}