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 / 155.jpg < prev    next >
Joint Photographic Experts Group Image  |  2013-12-21  |  620KB  |  2550x3300
Labels: book | reckoner
OCR: ANSI c and Integer Types factor- printf( "\n" ); return Running the Program This program will print the prime factors of an integer that greater than Enter an integer that greater than 12 Prime factors This program contains a single function, mai in0 Calls to pr intf() display the purpose of the program and prompt for input. After input with scanf {}. the prime factors are extracted with for loop. To find the factors of number, each of the integers between and numbe: tested see divides numb er evenly The test (number factor) interpreted AS follows: 1)The remainder when number 1s divided by factor calculated and 2) the logical negation of that value is taken. Case 1:If factor divides numbe evenly, the expression (number factor zero, and the expression (number factor) has the value (true) Ca ...