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 / 154.jpg < prev    next >
Joint Photographic Experts Group Image  |  2013-12-21  |  520KB  |  2550x3300
Labels: book | daybook | reckoner
OCR: 154 Chapter 3 Basic Data Types Example 3-6: factors.c factors.c that Synopsis fact Prompts tors for grea that ter and than integer accepts input Displays of an the integer prime Objective An example useful working program Th Incl Lude Files #include <stdio.h> En Pr int main void uns igned number, factor; number will store the input, and factor dri ves the for loop to find the factors pri intf intf( "of "This an program integer will that print the greater prime than 2. factors n \n In" pri pri scanf intf( Prompt "su" "Enter for and an numbe input integer the that integer. is greater than printf( "pri ime factors of are number for factor factor number; factor++ factor divi des number evenly number factor output factor pri intf( 9 factor ake the factor out of number number factor; dec rement ...