61. WAP to print factor of a given number
#include<stdio.h>
void
main()
{
int num,i;
printf("WAP to print factor of a
given number\n");
printf("Enter a number : ");
scanf("%d",&num);
for(i=1;i<=num;i++)
if((num%i)==0)
printf("%d
",i);
printf("\n");
}
Comments
Post a Comment