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