| free hosting image hosting hosting reseller online album e-shop famous people | ||
![]() ![]() |
||
#include <stdio.h>
int main(void){
int num, result =0;
scanf("%d",num);
for (int x = 1; x<= num; x++){
if (num%x == 0){
result += x;
}
}
result -= num;
if (result == num)
printf("Numero perfeito");
else
printf("Numero Imperfeito");
scanf("%d",num);
}