Answer :
#include<stdio.h> //header file contains the function,decleraction and macro defination of key words used in code.
int main ()
{
int num,i; //adressing the variables
printf("Enter the number of which you want to find factor : "); //output
scanf("%d",&num); //stores the input from the user
for (i=1;i<=num;i++) //condition
{
if (num%i==0) //condition
{
printf("%d is the factor of number %d\n",i,num); //output
}
}
}
Output :
0 Comments