#include<stdio.h>
#include<math.h>
int factorsum(int m);
int main()
{
int m,n;
printf("Enter m n:");
scanf("%d%d",&m,&n);
for(m;m<=n;m++)
if(m==factorsum(m))
printf("%d
",m);
return 0;
}
int factorsum(int m)
{
int sum,i;
for(i=1,sum=0;i<=m/2;i++)
if(m%i==0)
sum=sum+i;
return sum;
}
#include<stdio.h>
void reverse(int m);
int main()
{
int m;
printf("Enter m:");
scanf("%d",&m);
reverse(m);
return 0;
}
void reverse(int m)
{
while(m!=0){
if(m>10)
printf("%d",m%10);
else
printf("%d",m);
m=m/10;
}
printf("
");
}