Page 29 - IPP-11
P. 29

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
   24   25   26   27   28   29   30   31   32   33   34