Friday, July 6, 2012

Factors

Assalamu Alaikum. Hope you all are well by the grace of Almighty. Today we learn how to find out the factors of an integer number. Take a look at the problem.

Problem: A positive integer is entered through the keyboard. Write a program to obtain the factors of this number.

Solution: An integer is divided by which numbers is called the factors of that integer.
Ex. The factors of 12 would be 1, 2, 3, 4, 6, 12
Now take look at the program.


Thank you all..:)

0 comments:

Post a Comment