Answer:
Written in Python
userinp = int(input("Input: "))
strinp = str(userinp)
total = 0
for i in range(0, len(strinp)):
total = total + int(strinp[i])**3
if userinp == total:
print("True")
else:
print("False")
Step-by-step explanation:
This line prompts user for input
userinp = int(input("Input: "))
This line converts user input to string
strinp = str(userinp)
This line initializes total to 0
total = 0
The following iteration sums the cube of each digit
for i in range(0, len(strinp)):
total = total + int(strinp[i])**3
This if statement checks if the sum of the cube is equal to the user input
if userinp == total:
print("True") This is executed if true
else:
print("False") This is executed if false