Code:#include<stdio.h>
#include<math.h>
main()
{
int num, i, rem;
printf ("Enter the number to be factorised:");
scanf ("\n%d",&num);
printf ("The factors of %d =",num);
for (i=0;i<=num;i++)
{
rem = num%i;
if (rem==0)
printf( "\t%d",i);
}
}
I couldn't fix the error in this code. It's not working for me. Please help.