Factor Calculator in C
Back to the Main Page

factors.c

Calculates Factors.
My second real, from scratch c programme.

factors factors_of

will list all of the factors of factor_of.

e.g. factors 10

1
2
5
10

e.g. factors -v 10

Count	Factors
0	1
1	2
2	5
3	10
Combine with primes and you can get a list of factors with primes highlighted.

e.g. factors 10 | primes (note do not use the verbose output)

1 
2 *
5 *
10

Source Code:

Back to the Main Page