home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C by Discovery (4th Edition)
/
C_By_Discovery_4th_Edition.tar
/
C_By_Discovery_4th_Edition
/
_DISK_
/
ch2
/
epp10.c
< prev
next >
Wrap
C/C++ Source or Header
|
2005-06-16
|
734b
|
31 lines
/* epp10.c */
/* Include Files */
#include <stdio.h>
/* Function Prototypes */
void printmoney( int money );
/* PRECONDITION: money is any integer. It represents
* a number of pennies.
*
* POSTCONDITION: The value of money is been displayed
* on standard output with a $ preceding
* the number and a decimal point before
* the last two digits.
*/
int main( void )
{
printmoney( 12 );
printf( "\n" );
printmoney( 1000 );
printf( "\n" );
printmoney( 25304 );
printf( "\n" );
printmoney( 0 );
printf( "\n" );
printmoney( 145 );
printf( "\n" );
return 0;
}