Course Solutions Uncategorized (Solved) : Input Enter Integer B Input Enter Another Integer Num B Count 1 Sum 0 Count Q33390620 . . . .

(Solved) : Input Enter Integer B Input Enter Another Integer Num B Count 1 Sum 0 Count Q33390620 . . . .

 

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. . . . .

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post