Computer Science, asked by MAKTVDTO, 1 year ago

write a program to accept a number and print the sum of its divisors. Also check if it is a perfect no. or not. To do the program u may follow the following way-
•We can exclude n from the loop.Then the sum will not include the number and u can use it directly to check for a perfect no. To print the sum of divisors u will have to use s+n.

Answers

Answered by nitish8089
1

your \: code \: is
Attachments:

MAKTVDTO: Thank you so much for actually working out the program and helping me!!!
nitish8089: welcome
nitish8089: 1+2+3+6=12
nitish8089: all are divisor of 6
Answered by Anonymous
1

Hi,

I wanted to solve this, so I did this in javascript language (with help of nitish's program).

Please check screenshot for program.

Attachments:

nitish8089: so develope for range..
nitish8089: :)
nitish8089: would you know tutorial of menu-driven program
nitish8089: free.. and best
nitish8089: by using template solving prolem..
nitish8089: by using template solving prolem..
Similar questions