#include<stdio.h>
main()
{
int n,i=1;
printf("\nEnter the number=");
scanf("%d",&n);
printf("\nThe factors are=");
while(i<=n)
{
if(n%i==0)
printf("%d ",i);
i++;
}
}
main()
{
int n,i=1;
printf("\nEnter the number=");
scanf("%d",&n);
printf("\nThe factors are=");
while(i<=n)
{
if(n%i==0)
printf("%d ",i);
i++;
}
}
No comments:
Post a Comment