+ 1
according to condition does not work this program. please solve the problem
7 Réponses
+ 2
M Hassaan
you are missing only a '=' in for loop condition(sorry for typo in above comment I wrote if inplace of for), rest is all fine
for(i=1;i<=mid;i++)
+ 1
divisors of a number will be less than or equal to num/2,so you can make i<=mid as condition in for loop to remove logical error.
Also, check a comment in your code about 10 as its proper divisors will be1,2,5 only
+ 1
10 is not perfect number ,
In above , already specified by , Gaurav Agarwal...
10=> 1+2+5=8 != 10
0
Can you make me a program with this condition? please
0
i apply '=' but not correct working
0
Its working.. M Hassaan .
0
Only 6 digit. Enter the number 10 is not work.