Here is a sample Turbo C program that gives the number, sum and product of divisors of a number given by the user. For expert programmers, you may need to do some adjustments if you are using another language apart from C. For those who do not understand programming, just click on the link at the bottom of this page and try the finished program out for yourself.
if (a[cc]!=0) numdiv=numdiv*(a[cc] +1);
form is %d to the power of %d",z,ii);
form is %d to the power of %d",x,k);
Copyright © 2006. All rights reserved.
No part of this site may be reproduced without the permission of the authors.