The first int function cannot return characters.
If the second return is a string, it is not a single quotation mark but a double quotation mark.
Printf ("%s ") is used in the third input string instead of% c//////////////.
34
True press any key to continue.
# include & ltstdio.h & gt
char * is perfect(int n);
int main()
{
int n;
scanf("%d ",& ampn);
printf("%s ",is perfect(n));
}
char* IsPerfect(int n)
{
int i,sum
sum = 0;
for(I = 1; I & ltn;; i++)
{
If (n%i==0)
{
sum = sum+I;
}
}
if(sum==n)
{
Return "true";
}
other
{
Return "false";
}
}