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 / 077.jpg < prev    next >
Joint Photographic Experts Group Image  |  2014-01-09  |  608KB  |  2550x3300
Labels: book | crt screen | poster | reckoner
OCR: The if and if-else Statements call is (express ionl) d by statementl inder 1531 true else exp ress ion2 meter statement2 zero else exp ression3) false sta tement3 stat tementn following The effect is to create multiway decision statement. Exactly one of the subsidiary statements will be executed If one of the expressions in the list tests true, the accompanying statement will be executed. If none of the statements tests true then the statement associated with the final else will be executed The program if.c in Example 2-7 illustrates nested statement plays guessing game with the user Example 2-7: if.c if.c i0n 8 Synopsis Plays one time guessi ing game with the user The user enters number, whi ich i8 compared with TARGET The computer issues diagnostic message and then the cor rect resul ect ...