Get them to play with Legos, or help with household chores or something, explaining the process of what you are doing step by step. Try to get them thinking logically.
I couldn't even read at five years old, I certainly wouldn't have been able to make heads or tails of computer programming.