add for loop example

Signed-off-by: Lindell Xu <lxu@vetronicsltd.com.cn>