Hello, OnlineGDB Q&A section lets you put your programming query to fellow community users. Asking a solution for whole assignment is strictly not allowed. You may ask for help where you are stuck. Try to add as much information as possible so that fellow users can know about your problem statement easily.

WACP to find all the factors of a given numbers.

0 votes
asked Feb 18, 2018 by anonymous
by bhavya gala

1 Answer

0 votes
answered Feb 19, 2018 by Rohan Khul (140 points)
#include<stdio.h>

void find_factor(int n);

int main()

{

scanf("%d",&n);

find_factor(n);

return 0;

}

void find_factor(int n)

{

int i;

printf("factors are:");

for(i=1;i<=n;i++)

{

if(n%i==0)

printf("%d",i);

}
Welcome to OnlineGDB Q&A, where you can ask questions related to programming and OnlineGDB IDE and and receive answers from other members of the community.
...