a = input(‘Enter an integer: ‘);
b = input(‘Enter another integer: ‘);
for num = a:b
count = 1;
sum = 0;
while(count<num)
if(rem(num,count)==0)
sum = sum + count;
end
count=count+1;
end
if(sum==num)
fprintf(‘%d is Perfect.n’,num);
end
end
for this code how to descriptive block and inline comments?
Expert Answer
An answer will be send to you shortly. . . . .