#include <stdio.h>

int main ( )

{

    int   ivalue = 7;             /* simple integer variable           */

    float fvalue = 10.23;         /* simple floating point variable    */
    
    printf ("%i \n", ivalue);      /* no special format */

    printf ("%3i \n", ivalue);     /* width of 3 minimum spaces */

    printf ("%03i \n", ivalue);       /* width of 3 spaces padded with zeros, not spaces) */

    printf ("%f \n", fvalue);        /* Yikes!  No width, but lots of zeros will be printed after the decimal point */

    printf ("%1.2f \n", fvalue);     /* width of 7 spaces, with only two digits printed pass the decimal */

    printf ("%-7.2f \n", fvalue);    /* left justify the number , use a minus sign before the width */

    return (0);

}

