home *** CD-ROM | disk | FTP | other *** search
/ C by Discovery (4th Edition) / C_By_Discovery_4th_Edition.tar / C_By_Discovery_4th_Edition / CH_03 / 185.jpg < prev    next >
Joint Photographic Experts Group Image  |  2013-12-21  |  635KB  |  2550x3300
Labels: book | crt screen | poster | reckoner
OCR: 3.10 Types of Expr ressions and Automatic Conversions 185 her int ret turn integer That runcate intro() void intro( void ) printf( "This program will cal cu late the pri intf( "average of three integers n pri intf "Enter the integers now pri intf "press Return after each one \n" *X*XXXX***X** results void results( int. numi, int num2, int num3 float average, Note 1 int sum, sum numi num2 num3; average float sum Note 2 printf( "The average of your data n" average The function intro displays information and instructions on how to use this program. The three SCa calls accept input of the data values The func- tion resu tc calculates the average and displays Note 1: Notice that ave rage has been declared of type float This is neces- sary so that fractional values can be represented Note 2 The ...