Answer:
INPUT "Enter three-digit number" as number
IF number length equals 3 AND is integer:
hundreds = integer of number / 100
tens = inter of (remainder of (number / 100) / 10)
units = remainder of number / 10
PRINT hundreds + " hundreds"
PRINT tens + " tens"
PRINT units + " units"
ELSE:
PRINT "You need to input a three-digit integer"
Step-by-step explanation:
integer of division is usually obtained by casting to integer with int() (or // in python)
remainder of is usually obtained by using the modulo operator (%)
So, if you know how many number do you expect, you starting diving by 1xx with the same number of digits and go down by always using "remainder" of the last result and integer division of the same amount of digits, until you get to units, that you only use the remainder.