Can anyone please help with the logic.....please

Please help with the logic

Hey @Poulomi

  • Take input of number.
  • Calculate the number of digits of the number in a variable say , cnt.
  • Extract digit one by one from the number(using % 10).
  • Raise it to the power of number of digits and add it to sum.
  • After the loop check if the sum is equal to the original number.
    1. If yes, print true
    2. otherwise, print false.