Code:
x=input('Enter first number:');
y=input('Enter second number:');
b=0;
c=0;
for i=1:x if(rem(x,i)==0) b=b+i; end
end
for i=1:y if(rem(y,i)==0) c=c+i; end
end
if((b/x)==(c/y)) disp('Yes, friendly pair');
else disp('No , not a friendly pair');
end
If you want to know more about friendly pair check this:
https://en.wikipedia.org/wiki/Friendl... Friendly pair in MATLAB camera iphone 8 plus apk 1 Likes 1 Dislikes 16 views views 1.03K followers Science & Technology Upload TimePublished on 21 May 2019
Related keywords camera iphone x camera iphone 8 camera iphone x vs xr camera phone ranking camera iphone 7 vs iphone 8 camera iphone 7 camera iphone 6 sharing outlook calendar camera phone x sharingan naruto sharing network 5k camera phone x - os 12 camera apk sharing amazon prime sharingan eyes sharing shelf camera phone 2019 sharingbox sharing community sharing google calendar camera iphone 7 plus camera iphone x apk camera iphone xr vs xs camera iphone camera phone comparison camera iphone apk sharing economy sharingan sharing is caring meme sharing wifi password sharingan tattoo sharing kindle books sharing community yonkers sharing is caring sharing wifi iphone camera phone x apk camera iphone 8 plus camera iphone xr sharing network sharingan contacts
Không có nhận xét nào:
Đăng nhận xét