0
4.5kviews
Write a algorithm and program to generate a factor of given no.
1 Answer
| written 9.3 years ago by |
Outputs: A number n, which will be the largest number of the list.
Problem: Given a positive number, return its factors.
Inputs: A positive number.
Algorithm:
Accept a number num.Use a for loop from 1 to num. Find the MOD(%) of num with i within the for loop. If mod …