Get Solutions for: Write a program in Cwhich calculate whether a number is perfect or not, using 3methods: for loop, wh

Write a program in Cwhich calculate whether a number is perfect or not, using 3methods:
for loop, while loop,do-while loop.
Attached