3. WAP to accept any number display their factors.

Solution Of The Program -

If you want to see this solution:

Output-

Enter The Values: