home *** CD-ROM | disk | FTP | other *** search
/ C by Discovery (4th Edition) / C_By_Discovery_4th_Edition.tar / C_By_Discovery_4th_Edition / CH_02 / 073.jpg < prev    next >
Joint Photographic Experts Group Image  |  2014-01-09  |  568KB  |  2550x3300
Labels: book | crt screen | daybook | poster | reckoner
OCR: The if and if-else Statements lestion Incl iude Files #incl lude <stdio.h> Constant Defini tions #define CONSTANT Funct: ion Protot types ditionally exe int add const int intvar, int constant )i important PRECONDITION: intvar and cons tant are integers POSTCONDITION: The value returned 1 the sum of its par ameter, intvar and constant ess than 20 If some different int main( void ient. Its syntax int sum intvar, printf( "Enter decimal integer: scanf( .ntvar sum add const intvar, CONSTANT printf d in" intvar, CONSTANT, sum ) sum 20 print "The number smali enough \n"; else Note 1 executed printf( "Oops, too big. in" return nts message **** add const int add const int intvar, int constant return( intvar constant ta This program is similar to that in Example 2-4 above The only difference he sum ...