WAP to find all factor of a number
  C program to find all factors of a number     Write a C program to enter any number from user and print all factors of the given number using for loop. How to find factors of any number in C programming. Logic to find all factors of a given number in C program.   Example   Input  Input number:   Output  Factors of 12: 1, 2, 3, 4, 6, 12   Required knowledge   Basic C programming ,   If else ,   For loop , Basic Mathematics   What is factor?   Factor of any number is a whole number which exactly divides any number into a whole number without leaving any remainder. For example: 2 is a factor of 6 because 2 divides 6 exactly leaving no remainder.   Logic to find factors of any number   As per definition checking divisibility is the most important task we will be doing here. You will check whether numbers from 1 to   num   are divisible by   num   or not. If divisible then it is a factor otherwise not. Read more about checking divisibility.   ·   ...