blob: 05ae3e6c91eb537d9e6c2ed25e27a978b06e4bcc (
plain)
1
2
3
4
5
6
7
|
//Example 4.21
//use of the minimum field width feature using g-type conversion
i = 12345;
x = 345.678;
printf("%3d %5d %8d\n\n", i, i, i);
printf("%3g %10g %13g\n\n", x, x, x);
printf("%3g %13g %16g", x, x, x);
|