this is about pascal so i'm writing it here cause delphi is the closest thing...
i have this problem of making a program that will show the number of factors that can divide the integer you input.
for example if input is 10, output is 4 (1, 2, 5, 10).
heeelp with solving a problem
Started by imapwnulol, Sep 22 2007 12:57 PM
3 replies to this topic
#1
Posted 22 September 2007 - 12:57 PM
|
|
|
#2
Posted 24 September 2007 - 08:18 AM
Do you know how to tell if a number is a factor of 10?
Do you know how to loop from 1 to the number entered?
Do you know how to loop from 1 to the number entered?
#3
Posted 25 September 2007 - 05:46 AM
actually i don't. i guess i'd have to make the computer try dividing the number with all the smaller numbers, but how to leave ones that can't divide it, and how to count them?
#4
Posted 25 September 2007 - 08:01 AM
Look up modular division.


Sign In
Create Account

Back to top









