Program to find whether a given number is a factor of another number
Answers
Answered by
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
1
Answer:
72984295
#followme
#markasbrainlist
....
Similar questions
Social Sciences,
7 months ago
Science,
7 months ago
Math,
7 months ago
Computer Science,
1 year ago
Math,
1 year ago
Social Sciences,
1 year ago
Math,
1 year ago