home *** CD-ROM | disk | FTP | other *** search
/ C by Discovery (4th Edition) / C_By_Discovery_4th_Edition.tar / C_By_Discovery_4th_Edition / CH_11 / 662.jpg < prev    next >
Joint Photographic Experts Group Image  |  2013-12-20  |  513KB  |  2550x3300
Labels: book | crt screen | poster | reckoner
OCR: 662 Chapter C Library and Preprocessor Facilities PRECOND TION: is long POSTCONDI ITION: uses recu rsive algori .thm to calculate the factorial of its araument long convert void ; PRECONDITI ON none POSTCOND ITION: reads standard input until ei ther BLANK, Ue END OF LINE or nondigit found; if only digits are found, the funct. ion returns the conver rted value as type int; otherw se, the functi ion error( called void error void } PRECONDITION: none POSTCONDITION: d splays an error message and termi nates the program with exit value int main( void long n ENTER "ma in Note rad intf "prog ram to Calculate Factorials. In" ) printf \n" printf nEnter positive integer value convert Note 2 printf( \n%ld! %ld. \n", n, factorial( LIXG "ma in" Note return factorial) long factorial long long temp, ENTE ...