Ask your own question, for FREE!
Computer Science 22 Online
OpenStudy (anonymous):

write a program that will read a positive integer and print out all the factors

OpenStudy (espex):

What language?

OpenStudy (anonymous):

in which prog. lang. ?

OpenStudy (anonymous):

Sorry friends, in pseudocode

OpenStudy (anonymous):

integer number print( "Please enter a positive integer number: " ) read( number ) if (number greater or equal 0) { for( i = 1 to i equal number ) { if( number modulus i equal 0) { print( i ) } } }

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!