Computer Science, asked by astudas4128, 1 year ago

Program to find whether a given number is a factor of another number

Answers

Answered by devanshchoudhary17mc
3

Answer:

#include <stdio.h>

int main()

{

int number, i;

printf("Enter a positive integer: ");

scanf("%d",&number);

printf("Factors of %d are: ", number);

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

{

if (number%i == 0)

{

printf("%d ",i);

}

}

return 0;

}

Answered by Anonymous
1

Answer:

72984295

#followme

#markasbrainlist

....

Similar questions