home *** CD-ROM | disk | FTP | other *** search
/ C by Discovery (4th Edition) / C_By_Discovery_4th_Edition.tar / C_By_Discovery_4th_Edition / CH_01 / 051.jpg < prev    next >
Joint Photographic Experts Group Image  |  2014-01-06  |  672KB  |  2550x3300
Labels: book | crt screen | poster | reckoner
OCR: Introduction to Functions and Structured Progr ramming in unction that can be trave led. will be alue o Ob jective To illustrate the use of prep rocessor- -def ined cons tant to make program easi ly modi f iable to the and the use of pa rame ters and return values value make funct ion independent Incl Lude Files #incl Lude <stdio h. Preprocessor Constants #define MILEAGE 28 Note 1 additional Funct on Prototypes of type int int miles (int num .gallons, int mi leage from PRECONDITION: num gallons an integer that represents the cepts input amount of gasol ine avail lable mileage the olynomial miles per gallon vehi icle POSTCONDIT ION The return value is the number of miles that can be traveled with the vehicle and that amount of gas. ofa function int main( (void) neters and int has been int g ...