The best way is to let them expand their creativity and problem solving skills. Some decent puzzle books and toys will do.
Programming is just using some 'keyword' based programming languages to tell computer how to solve problems.
5-10 is a good age to expand the skills in so many fronts. Just don't limit your kids to learn some simple keywords/loop constructs etc.- which they can learn pretty quickly at any age later.