/*factors of given number */
#include<stdio.h>
#include<conio.h>
void main ()
{
clrscr();
int a,i;
printf("enter the number :");
scanf("%d",&a);
printf("factorial of %d are :\n ",a) ;
for(i=1;i<=a;i++)
{
if(a%i==0)
{ printf("%d\t",i);
}
}
getch();
}
SOLUTION FOR VARIOUS PROGRAMMING RELATED STUFFS
0 comments:
Post a Comment