Computer Science Canada Primary Divisors Help |
Author: | compstudent [ Thu Feb 24, 2011 6:53 pm ] | ||
Post subject: | Primary Divisors Help | ||
Hi I am making a simple program that finds all the prime divisors of a given number.
The problem I am having is with the divs = test/x. It says it is the wrong type but if I change it to a real then it doesn`t work in the prime function in the for loop. Thanks |
Author: | Tony [ Thu Feb 24, 2011 7:29 pm ] |
Post subject: | RE:Primary Divisors Help |
Was there supposed to be a question in here? |
Author: | compstudent [ Thu Feb 24, 2011 7:30 pm ] |
Post subject: | Re: Primary Divisors Help |
Is there any way to change and Int to a real or vise versa, or any other solution to my problem? sorry. |
Author: | Tony [ Thu Feb 24, 2011 7:47 pm ] |
Post subject: | RE:Primary Divisors Help |
you are probably looking for div operator. |