Program 7: Write a program to accept a number, find and display whether it’s an Armstrong number or not. Code: Output: Program 8: Write a program to accept a number and find out whether it is a perfect number or not. Code: Output: